summaryrefslogtreecommitdiffstats
path: root/pykolab/auth/ldap/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/auth/ldap/__init__.py')
-rw-r--r--pykolab/auth/ldap/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 6144e5f..58035bf 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1169,6 +1169,14 @@ class LDAP(pykolab.base.Base):
self.user_quota(entry, folder)
+ mailserver_attr = self.config_get('mailserver_attribute')
+ if not entry.has_key(mailserver_attr):
+ self.set_entry_attribute(entry, mailserver_attr, server)
+ else:
+ if not entry[mailserver_attr] == server:
+ # TODO: Should actually transfer mailbox
+ self.set_entry_attribute(entry, mailserver_attr, server)
+
else:
log.warning(
_("Kolab user %s does not have a result attribute %r") % (