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:
@ -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)
|
||||
|
Reference in New Issue
Block a user