summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kolabd/__init__.py4
-rw-r--r--pykolab/auth/ldap/__init__.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/kolabd/__init__.py b/kolabd/__init__.py
index 98cd6ed..491eaef 100644
--- a/kolabd/__init__.py
+++ b/kolabd/__init__.py
@@ -289,8 +289,8 @@ class KolabDaemon:
level=8
)
- domain_root_dns[primary] = domain_root_dn
- naming_contexts[primary] = naming_context
+ domain_root_dns[primary] = domain_root_dn.lower()
+ naming_contexts[primary] = naming_context.lower()
log.debug(
_l("Naming contexts to synchronize: %r") % (
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):