mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
samba-tool user getpassword: Prepare to support a ;previous=1 option, change behaviour for ;rounds=
This will return the previous password, but the pattern is to include the option in the returned attribute name, so we need to use vatter["raw_attr"], not 'a'. This changes the behaviour for the ;rounds= option used when we hold the plaintext password (possibly under GPG encryption). This is now consistant with other parameters in the LDAP attribute, and is now included in the returned attribute name. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Douglas Bagnall
parent
175a13ca13
commit
2c54a75484
@ -751,7 +751,7 @@ class GetPasswordCommand(Command):
|
||||
continue
|
||||
else:
|
||||
continue
|
||||
obj[a] = ldb.MessageElement(v, ldb.FLAG_MOD_REPLACE, a)
|
||||
obj[a] = ldb.MessageElement(v, ldb.FLAG_MOD_REPLACE, vattr["raw_attr"])
|
||||
|
||||
def get_src_attrname(srcattrg):
|
||||
srcattrl = srcattrg.lower()
|
||||
|
Reference in New Issue
Block a user