diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-07-12 15:26:42 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-07-12 15:26:42 +1000 |
commit | 44ea6a26fd088f0f8c86817510ebe5a6cddf9158 (patch) | |
tree | b40611c9cec31abf163d6d5ce16a9f993486f66c /source4/scripting/python | |
parent | b4691ad5601a9d3e3f8ff8b42314d5e2cb462cd2 (diff) | |
download | samba-44ea6a26fd088f0f8c86817510ebe5a6cddf9158.tar.gz samba-44ea6a26fd088f0f8c86817510ebe5a6cddf9158.tar.bz2 samba-44ea6a26fd088f0f8c86817510ebe5a6cddf9158.zip |
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 1cf0d751493b709ef6b2234ec8847a7499f48ab3)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r-- | source4/scripting/python/samba/samdb.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 6465f49519..c47cf4a0dc 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -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) |