From eff1e8cd5d17ca990341e463da03fb1075bdb0d0 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 9 Nov 2010 18:46:37 +0100 Subject: 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. --- source4/libnet/libnet_samsync_ldb.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source4/libnet/libnet_samsync_ldb.c') 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); -- cgit