summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/auth/__init__.py4
-rw-r--r--pykolab/auth/ldap/__init__.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/pykolab/auth/__init__.py b/pykolab/auth/__init__.py
index 5c6d51c..04c286d 100644
--- a/pykolab/auth/__init__.py
+++ b/pykolab/auth/__init__.py
@@ -241,9 +241,9 @@ class Auth(pykolab.base.Base):
else:
self.domains = {}
for primary, secondaries in domains:
- self.domains[primary] = primary
+ self.domains[primary.lower()] = primary.lower()
for secondary in secondaries:
- self.domains[secondary] = primary
+ self.domains[secondary.lower()] = primary.lower()
return self.domains
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index 6670d17..f597dfd 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2099,10 +2099,10 @@ class LDAP(pykolab.base.Base):
# TODO: Where we use associateddomain is actually configurable
if type(domain_attrs[dna]) == list:
- primary_domain = domain_attrs[dna].pop(0)
- secondary_domains = domain_attrs[dna]
+ primary_domain = domain_attrs[dna].pop(0).lower()
+ secondary_domains = [x.lower() for x in domain_attrs[dna]]
else:
- primary_domain = domain_attrs[dna]
+ primary_domain = domain_attrs[dna].lower()
domains.append((primary_domain,secondary_domains))