1 (edited by melaleuca5 2012-04-25 06:03:08)

Topic: Mail Dir not taking effect when manually updating using the IRedAdminP

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: v1.6.3 (LDAP)
- Linux/BSD distribution name and version: RED HAT ENTERPRISE
- Any related log? Log is helpful for troubleshooting.
====

We migrated a bunch of domains and users to Ldap. When we configure the "Path to Mailbox" and rename a folder it doesn't update on the ldap side but on the IredAdmin-Pro it does.

2

Re: Mail Dir not taking effect when manually updating using the IRedAdminP

Could you please paste /etc/dovecot/dovecot-ldap.conf here to help troubleshoot? REMOVE sensitive info before posting.

= UPDATE =
It's a bug in iRedAdmin-Pro-LDAP, it doesn't update value of attribute 'homeDirectory'. Here's patch for iRedAdmin-Pro-LDAP-1.6.3 to fix it:

diff -r 795dd34a2862 admin/ldap/1.6.3/libs/ldaplib/user.py
--- a/admin/ldap/1.6.3/libs/ldaplib/user.py    Tue Apr 24 23:18:48 2012 +0800
+++ b/admin/ldap/1.6.3/libs/ldaplib/user.py    Wed Apr 25 13:30:23 2012 +0800
@@ -810,6 +810,7 @@
                 # Update mailMessageStore.
                 self.mailMessageStore = data.get('mailMessageStore', )
                 mod_attrs += [ (ldap.MOD_REPLACE, 'mailMessageStore', str(self.mailMessageStore)) ]
+                mod_attrs += [(ldap.MOD_REPLACE, 'homeDirectory', str(self.storageBaseDirectory) + str(self.mailMessageStore))]
 
             # BCC
             # Update recipient bcc address.