summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-09 18:46:37 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-11 10:03:39 +0100
commiteff1e8cd5d17ca990341e463da03fb1075bdb0d0 (patch)
treecba69cd62d2a7315fbd0f8165c3d6c4cbb56bce2 /source4/libnet
parent39f86619f5f30461d3c1896e88b6b3df2b51a26e (diff)
downloadsamba-eff1e8cd5d17ca990341e463da03fb1075bdb0d0.tar.gz
samba-eff1e8cd5d17ca990341e463da03fb1075bdb0d0.tar.bz2
samba-eff1e8cd5d17ca990341e463da03fb1075bdb0d0.zip
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.
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_samsync_ldb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c
index 917257de85..bdeced8eef 100644
--- a/source4/libnet/libnet_samsync_ldb.c
+++ b/source4/libnet/libnet_samsync_ldb.c
@@ -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);