1

Topic: after i upgrade from iredmail/iredadmin 0.9.1 to ireadmin-pro-ldap 3.1

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition
- Linux/BSD distribution name and version: ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): new ldap install
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro?: cant login i get internal server error in the webbrowser.
- [IMPORTANT]
172.16.1.16 [pid: 7574|app: 0|req: 1/2] 172.16.1.5 () {54 vars in 893 bytes} [Sat May 26 19:11:50 2018] GET /iredadmin => generated 21 bytes in 397 msecs (HTTP/1.1 500) 2 headers in 164 bytes (2 switches on core 0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/web/application.py", line 257, in process
    return self.handle()
  File "/usr/lib/python2.7/dist-packages/web/application.py", line 248, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/lib/python2.7/dist-packages/web/application.py", line 484, in _delegate
    mod = __import__(mod, None, None, [''])
  File "/opt/www/iRedAdmin-Pro-LDAP-3.1/controllers/ldap/basic.py", line 12, in <module>
    from libs.ldaplib import auth, decorators, ldaputils, attrs
  File "/opt/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/decorators.py", line 7, in <module>
    from libs.ldaplib.general import is_domain_admin
  File "/opt/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/general.py", line 11, in <module>
    from libs.ldaplib import ldaputils, attrs, deltree
  File "/opt/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 5, in <module>
    class DeleteLeafs(ldap.async.AsyncSearchHandler):
  File "/opt/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 9, in DeleteLeafs
    _entryResultTypes = ldap.async._entryResultTypes
AttributeError: 'module' object has no attribute '_entryResultTypes'
====

Hi i get error when i try to login in iredadmin-pro-ldap, i have install iredmail 0.9.1 and upgrade and after that i cant use iredadmin. i get only internal server error.


//bjorne

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: after i upgrade from iredmail/iredadmin 0.9.1 to ireadmin-pro-ldap 3.1

It's a known issue that python ldap module doesn't work.

Here's patch for iRedAdmin-Pro-LDAP-3.1. If you're not familiar with patch, mail me to get a patched version of iRedAdmin-Pro and upgrade it by following our tutorial below:
https://docs.iredmail.org/migrate.or.up … admin.html

Post's attachments

ldap.patch 7.79 kb, 11 downloads since 2018-05-29 

You don't have the permssions to download the attachments of this post.

3

Re: after i upgrade from iredmail/iredadmin 0.9.1 to ireadmin-pro-ldap 3.1

Hi Zang.

I had the same problem.

- iRedMail version (check /etc/iredmail-release): 0.9.8 OPENLDAP edition
- Linux/BSD distribution name and version: Freebsd 11.1 - ADM64-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): new ldap install
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro: YES

I Installed a new server and download the last version of iredmail to test:
iRedMail-0.9.8.tar.bz2    149.9 KB    zhb    927    2018-06-05

After install i tried to install iRedAdmin-Pro-LDAP-3.1.tar.bz2, accessing via web i received "internal server error".
Log file:

170.84.17.247 [pid: 754|app: 0|req: 1/1] 186.249.196.54 () {56 vars in 1133 bytes} [Fri Jun  8 10:30:07 2018] GET /iredadmin/ => generated 21 bytes in 599 msecs (HTTP/1.1 500) 2 headers in 164 bytes (2 switches on core 0)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 458, in _delegate
    mod = __import__(mod, None, None, [''])
  File "/usr/local/www/iRedAdmin-Pro-LDAP-3.1/controllers/ldap/basic.py", line 12, in <module>
    from libs.ldaplib import auth, decorators, ldaputils, attrs
  File "/usr/local/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/decorators.py", line 7, in <module>
    from libs.ldaplib.general import is_domain_admin
  File "/usr/local/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/general.py", line 11, in <module>
    from libs.ldaplib import ldaputils, attrs, deltree
  File "/usr/local/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 5, in <module>
    class DeleteLeafs(ldap.async.AsyncSearchHandler):
  File "/usr/local/www/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 9, in DeleteLeafs
    _entryResultTypes = ldap.async._entryResultTypes
AttributeError: 'module' object has no attribute '_entryResultTypes'

How to fix?

Thanks a lot.

4

Re: after i upgrade from iredmail/iredadmin 0.9.1 to ireadmin-pro-ldap 3.1

jorge wrote:

How to fix?

I sent you (samuel@) an email with download link of patched iRedAdmin-Pro, please upgrade it and try again.
Sorry about this trouble.

5

Re: after i upgrade from iredmail/iredadmin 0.9.1 to ireadmin-pro-ldap 3.1

Works now.

Thanks a lot Zang.