1

Topic: LDAP atributes updates issue.

I am trying to migrate  iRedmail from my old version ( 0.8.87) to the latest version on Ubuntu 12.04.

As part of this  I imported ldap entries with a ldif import. Now  I am trying to update
the LDAP attributes version by version on the new server.

The new server is Ubuntu 20.04 . When I run the  command after making changes according to
LDAP entries, I am getting the following error:

/update# python updateLDAPValues_087_to_090.py
Traceback (most recent call last):
  File "updateLDAPValues_087_to_090.py", line 20, in <module>
    print >> sys.stderr, "* Connecting to LDAP server: %s" % uri
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWr

Please let me know what exactly went wrog.

Regards
Sandeep

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

----

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

2

Re: LDAP atributes updates issue.

The script is written in Python 2, please either install Python 2 with LDAP module on Ubuntu 20.04, or use another server with Python 2 + LDAP module.

3

Re: LDAP atributes updates issue.

ZhangHuangbin wrote:

The script is written in Python 2, please either install Python 2 with LDAP module on Ubuntu 20.04, or use another server with Python 2 + LDAP module.


Thank you . This worked fine.  I did't able to make python2.7-ldap  on 20.04. But 18.04, it worked fine.