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__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index f76f684..4ad86fa 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2378,7 +2378,7 @@ class LDAP(Base):
# If we have a 1:1 match, continue as planned
for naming_context in naming_contexts:
- if self.domain_rootdns[domain].endswith(naming_context):
+ if self.domain_rootdns[domain].lower().endswith(naming_context):
return naming_context
def _primary_domain_for_naming_context(self, naming_context):