mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s4:libnet/libnet_samsync_ldb.c - remove "userPassword" remove code
It could also be a normal attribute with a normal content, and if it's not like that then it's for sure empty.
This commit is contained in:
parent
39f86619f5
commit
eff1e8cd5d
@ -360,12 +360,6 @@ static NTSTATUS samsync_ldb_handle_user(TALLOC_CTX *mem_ctx,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
if (!add) {
|
||||
/* Passwords. Ensure there is no plaintext stored against
|
||||
* this entry, as we only have hashes */
|
||||
samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,
|
||||
"userPassword");
|
||||
}
|
||||
if (user->lm_password_present) {
|
||||
samdb_msg_add_hash(state->sam_ldb, mem_ctx, msg,
|
||||
"dBCSPwd", &user->lmpassword);
|
||||
|
Loading…
x
Reference in New Issue
Block a user