diff options
author | Alberto Maria Fiaschi <alberto.fiaschi@estar.toscana.it> | 2015-06-10 15:26:58 +0200 |
---|---|---|
committer | Garming Sam <garming@samba.org> | 2015-11-30 03:49:25 +0100 |
commit | 1c9117746b616fcb8ab251834888b57c4a1c29bf (patch) | |
tree | 5e468bb0f87d60c7256686f5e3883645e71354ec /source3/include/passdb.h | |
parent | bb9f13ab4165f150e01a88ddcc51605a7c176f5d (diff) | |
download | samba-1c9117746b616fcb8ab251834888b57c4a1c29bf.tar.gz |
Add --set-nt-hash option to pdbedit to update user password from nt-hash hexstring.
Useful to take in sync password from other repository.
(Modify MASK_USER_GOOD to include new flag BIT_PWSETNTHASH)
pdbedit -vw show also password hashes .
Split pdb_set_plaintext_passwd in two function:
pdb_set_plaintext_passwd and pdb_update_history.
pdb_update_history update password history and is call from
pdb_set_plaintext_passwd.
Signed-off-by: Alberto Maria Fiaschi <alberto.fiaschi@estar.toscana.it>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/include/passdb.h')
-rw-r--r-- | source3/include/passdb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/passdb.h b/source3/include/passdb.h index 893d0d09bf6..d8f7f1090a5 100644 --- a/source3/include/passdb.h +++ b/source3/include/passdb.h @@ -811,6 +811,7 @@ bool pdb_set_nt_passwd(struct samu *sampass, const uint8_t pwd[NT_HASH_LEN], enu bool pdb_set_lanman_passwd(struct samu *sampass, const uint8_t pwd[LM_HASH_LEN], enum pdb_value_state flag); bool pdb_set_pw_history(struct samu *sampass, const uint8_t *pwd, uint32_t historyLen, enum pdb_value_state flag); bool pdb_set_plaintext_pw_only(struct samu *sampass, const char *password, enum pdb_value_state flag); +bool pdb_update_history(struct samu *sampass, const uint8_t new_nt[NT_HASH_LEN]); bool pdb_set_bad_password_count(struct samu *sampass, uint16_t bad_password_count, enum pdb_value_state flag); bool pdb_set_logon_count(struct samu *sampass, uint16_t logon_count, enum pdb_value_state flag); bool pdb_set_country_code(struct samu *sampass, uint16_t country_code, |