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-14 13:20:22 +0100
commit9cd08a486b254295f57b9d192306f32abf799157 (patch)
tree63452b2913f2205563a1bd9ed36910ad37a73cf1
parent9ce5363757ccf92b3ad3212b230c8d1699e703d6 (diff)
downloadpykolab-9cd08a486b254295f57b9d192306f32abf799157.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 e59b36d..d9cf0d0 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1277,7 +1277,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] = \