summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-14 13:20:22 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-01-15 16:20:38 +0100
commitf754519d2a58eab829184c460be6b42df4eb4268 (patch)
treeb87ca88208856b155da193f7a4ed682261995fa9
parent22035823051733b2a5f74b10610139ceaadde421 (diff)
downloadpykolab-f754519d2a58eab829184c460be6b42df4eb4268.tar.gz
.lower() both the mailserver_attribute as well as the result_attribute
-rw-r--r--pykolab/auth/ldap/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index e988f1b..36d6f55 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1077,7 +1077,13 @@ class LDAP(pykolab.base.Base):
if mailserver_attribute == None:
mailserver_attribute = 'mailhost'
+ mailserver_attribute = mailserver_attribute.lower()
+
result_attribute = conf.get('cyrus-sasl', 'result_attribute')
+ if result_attribute == None:
+ result_attribute = 'mail'
+
+ result_attribute = result_attribute.lower()
if not entry.has_key(mailserver_attribute):
entry[mailserver_attribute] = \