summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-30 14:31:52 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-01-30 14:31:52 +0000
commit6e4ec59549461c2a333ec032ed8ee1238de75347 (patch)
treea64b152fa8ee28f08864a200116df72ecf4b2514 /pykolab
parent2f765b856551925ad1ee317e85a6fc257874f956 (diff)
downloadpykolab-6e4ec59549461c2a333ec032ed8ee1238de75347.tar.gz
Ensure an attribute obtained is case-insensitive when we look it up
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/auth/ldap/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index e7da7ec..16c0688 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -281,6 +281,8 @@ class LDAP(pykolab.base.Base):
if entry_attrs.has_key(attribute):
return entry_attrs[attribute]
+ elif entry_attrs.has_key(attribute.lower()):
+ return entry_attrs[attribute.lower()]
else:
return None