Detect old service before adding missing ones while updating LDAP data for Dovecot 2.3. fixes #121
Update LDAP data
[TOC]
Summary
If you're restoring from an old iRedMail release, you need to add missing LDAP attribute/values, which are introduced in new iRedMail releases, by running Python scripts below: https://github.com/iredmail/iRedMail/tree/1.3.1/update/ldap/.
For example:
-
If you're restoring iRedMail from
0.9.1to0.9.5, you must run all update scripts for iRedMail-0.9.1 and newer releases. In this case, only fileupdateLDAPValues_094_to_095.pylisted in above link is required. -
If you're restoring iRedMail from
0.8.6to0.9.5, you need 3 files:updateLDAPValues_086_to_087.pyupdateLDAPValues_087_to_090.pyupdateLDAPValues_094_to_095.py
How to use those upgrade scripts
Please open the file you need to run, for example, updateLDAPValues_094_to_095.py,
find parameters like below:
uri = 'ldap://127.0.0.1:389'
basedn = 'o=domains,dc=example,dc=com'
bind_dn = 'cn=Manager,dc=example,dc=com'
bind_pw = 'passwd'
Please update them with the correct LDAP prefix (dc=xx,dc=xx) and bind
password, then run it with python command:
python2 updateLDAPValues_094_to_095.py