Changeset View
Changeset View
Standalone View
Standalone View
pykolab/auth/ldap/__init__.py
Show First 20 Lines • Show All 2,340 Lines • ▼ Show 20 Lines | def _domain_naming_context(self, domain): | ||||
_l("Domains/Root DNs found: %r") % ( | _l("Domains/Root DNs found: %r") % ( | ||||
self.domain_rootdns | self.domain_rootdns | ||||
), | ), | ||||
level=8 | level=8 | ||||
) | ) | ||||
# If we have a 1:1 match, continue as planned | # If we have a 1:1 match, continue as planned | ||||
for naming_context in naming_contexts: | 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 | return naming_context | ||||
def _primary_domain_for_naming_context(self, naming_context): | def _primary_domain_for_naming_context(self, naming_context): | ||||
self._bind() | self._bind() | ||||
_domain = '.'.join(naming_context.split(',dc='))[3:] | _domain = '.'.join(naming_context.split(',dc='))[3:] | ||||
_naming_context = self._kolab_domain_root_dn(_domain) | _naming_context = self._kolab_domain_root_dn(_domain) | ||||
▲ Show 20 Lines • Show All 872 Lines • Show Last 20 Lines |