1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

rename sambaPassword -> userPassword.

This attribute is used in a very similar way (virtual attribute
updating the password) in AD on Win2003, so eliminate the difference.

This should not cause a problem for on-disk passwords, as by default
we do not store the plaintext at all.

Andrew Bartlett
(This used to be commit 1cf0d75149)
This commit is contained in:
Andrew Bartlett
2008-07-12 15:26:42 +10:00
parent b4691ad560
commit 44ea6a26fd
14 changed files with 49 additions and 68 deletions

View File

@ -112,7 +112,7 @@ userAccountControl: %u
# now the real work
self.add({"dn": user_dn,
"sAMAccountName": username,
"sambaPassword": password,
"userPassword": password,
"objectClass": "user"})
res = self.search(user_dn, scope=ldb.SCOPE_BASE,
@ -163,8 +163,8 @@ userAccountControl: %u
setpw = """
dn: %s
changetype: modify
replace: sambaPassword
sambaPassword: %s
replace: userPassword
userPassword: %s
""" % (user_dn, password)
self.modify_ldif(setpw)