1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-05 04:59:08 +03:00

r26523: Refactor provisioning code.

(This used to be commit ac1083178f)
This commit is contained in:
Jelmer Vernooij
2007-12-18 17:21:13 +01:00
committed by Stefan Metzmacher
parent 54a48d40a1
commit 1c29a63d44
4 changed files with 249 additions and 155 deletions

View File

@ -89,7 +89,7 @@ userAccountControl: %u
assert(len(res) == 1 and res[0].defaultNamingContext is not None)
domain_dn = res[0].defaultNamingContext
assert(domain_dn is not None)
dom_users = searchone(self, domain_dn, "name=Domain Users", "dn")
dom_users = self.searchone(domain_dn, "dn", "name=Domain Users")
assert(dom_users is not None)
user_dn = "CN=%s,CN=Users,%s" % (username, domain_dn)