1

Topic: IRedmail-Pro-LDAP doesn't work anymore after upgrade from Ubuntu 16.04

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: Ubuntu 18.04LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? YES
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

After upgrade from Ubuntu 16.04LTS to 18.04LTS, iRedmail-Pro doesn't work anymore.

I receive the error "Internal Server Error".

Log of UWSGI says this:

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 "/usr/share/apache2/iRedAdmin-Pro-LDAP-3.1/controllers/ldap/basic.py", line 12, in <module>
    from libs.ldaplib import auth, decorators, ldaputils, attrs
  File "/usr/share/apache2/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/decorators.py", line 7, in <module>
    from libs.ldaplib.general import is_domain_admin
  File "/usr/share/apache2/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/general.py", line 11, in <module>
    from libs.ldaplib import ldaputils, attrs, deltree
  File "/usr/share/apache2/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 5, in <module>
    class DeleteLeafs(ldap.async.AsyncSearchHandler):
  File "/usr/share/apache2/iRedAdmin-Pro-LDAP-3.1/libs/ldaplib/deltree.py", line 9, in DeleteLeafs
    _entryResultTypes = ldap.async._entryResultTypes
AttributeError: 'module' object has no attribute '_entryResultTypes'

Thanks in advance.

Best regards

Walter

----

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

2

Re: IRedmail-Pro-LDAP doesn't work anymore after upgrade from Ubuntu 16.04

I sent you a patched iRedAdmin-Pro-LDAP version moment ago, please follow our tutorial to upgrade it:
https://docs.iredmail.org/migrate.or.up … admin.html