Zhang Huangbin avatar Zhang Huangbin committed 528f867

Add GPL license info.

Comments (0)

Files changed (40)

controllers/__init__.py

+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+

controllers/ldap/__init__.py

+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+

controllers/ldap/admin.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import sys
 import web
 from web import render

controllers/ldap/base.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import sys
 import web
 

controllers/ldap/basic.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import web, sys
 from libs import __version__, __url_iredadmin_lastest__, iredutils
 from libs.ldaplib import core, auth, domain, ldaputils

controllers/ldap/domain.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import sys
 import web
 from web import render

controllers/ldap/urls.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 # URL schema:
 #
 # accountType:    domain, admin, user, maillist, alias

controllers/ldap/user.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import types, sys
 import web
 from web import render

controllers/utils.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import web
 
 class img:
 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import os, sys
 import web
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 __version__ = '0.1.1'
 __author__ = 'Zhang Huangbin'
 __author_mail__ = 'michaelbibby@gmail.com'
 
 # Author: Zhang Huangbin <michaelbibby@gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 # init settings
 
 import os, sys

libs/iredutils.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import gettext
 import os
 import re

libs/languages.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 langmaps = {
         'en_US': u'English (US)',
         'zh_CN': u'简体中文',

libs/ldaplib/__init__.py

+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+

libs/ldaplib/admin.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import os, sys
 import ldap, ldap.filter
 import web

libs/ldaplib/attrs.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 # ---------------------------------------------------------------------------
 # Default structure in iRedMail schema.
 #   dc=example,dc=com                       # LDAP_SUFFIX

libs/ldaplib/auth.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import web
 import ldap, ldap.filter
 

libs/ldaplib/core.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import os, sys, time
 import web
 import ldap, ldap.filter

libs/ldaplib/domain.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import sys
 import ldap
 import web

libs/ldaplib/iredldif.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import time
 import web
 from libs.ldaplib import ldaputils

libs/ldaplib/ldaputils.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import os, urllib, sys
 from base64 import b64encode
 import web

libs/ldaplib/user.py

 
 # Author: Zhang Huangbin <michaelbibby (at) gmail.com>
 
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 import sys
 import ldap, ldap.filter
 import web

settings.ini.sample

+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+
 [general]
 # Site webmaster's mail address.
 webmaster = michaelbibby@gmail.com

templates/default/ldap/admin_create.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# cn, [msg], #}
 {% extends "layout.html" %}
 

templates/default/ldap/admin_profile.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# defined: profile_type, mail, profile, languagemaps, [msg], #}
 {% extends "layout.html" %}
 {% from "macros.html" import

templates/default/ldap/admins.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% extends "layout.html" %}
 
 {% from "macros.html" import set_account_status_img with context %}

templates/default/ldap/checknew.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# version, #}
 {% extends "layout.html" %}
 

templates/default/ldap/dashboard.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# version, hostname, uptime, loadavg, #}
 {% extends "layout.html" %}
 

templates/default/ldap/domain_create.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# Defined: domain, profile, mtaTransport #}
 
 {% extends "layout.html" %}

templates/default/ldap/domain_profile.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# cur_domain, allDomains, profile_type, #}
 {% extends "layout.html" %}
 

templates/default/ldap/domains.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% extends "layout.html" %}
 
 {% from "macros.html" import set_account_status_img, with context %}

templates/default/ldap/error404.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% extends "layout.html" %}
 
 {% block js %}{% endblock js %}

templates/default/ldap/layout.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

templates/default/ldap/login.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% extends "layout.html" %}
 
 {% block title %}{{ _('Login to manage your mail domains & users') |title }}{% endblock %}

templates/default/ldap/macros.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% macro set_account_status_img(status) -%}
     {% if status == 'active' or status == 'yes' %}
         {% set img = "enabled.png" %}

templates/default/ldap/msgHandlers.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {% macro domainMsgHandler(msg=none) -%}
 {% if msg is defined and msg is not sameas none %}
     <div class="ct-box info-box">

templates/default/ldap/user_create.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# allDomains, domain, default_quota, [username, newpw, confirmpw, ] #}
 {% extends "layout.html" %}
 

templates/default/ldap/user_profile.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# profile_type, mail, user_profile, [msg], #}
 {% extends "layout.html" %}
 

templates/default/ldap/users.html

+{#
+#---------------------------------------------------------------------
+# This file is part of iRedAdmin-OSE, which is official web-based admin
+# panel (Open Source Edition) for iRedMail.
+#
+# iRedMail is an open source mail server solution for Red Hat(R)
+# Enterprise Linux, CentOS, Debian and Ubuntu.
+#
+# iRedAdmin-OSE is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# iRedAdmin-OSE is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with iRedAdmin-OSE.  If not, see <http://www.gnu.org/licenses/>.
+#---------------------------------------------------------------------
+#}
+
 {# users, cur_domain, allDomains, msg #}
 
 {% extends "layout.html" %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.