summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-04-01 10:54:27 +0200
committerStefan Metzmacher <metze@samba.org>2014-04-02 17:12:47 +0200
commit245d0f1b3dd844c680bfa9b1d9e56d26305e6bae (patch)
tree4884b96df1f665a9b8aaef808842ab8e5ac410ea /source4
parenta6b82ee197f6f79bb74e0720d328c4a518e513fe (diff)
downloadsamba-245d0f1b3dd844c680bfa9b1d9e56d26305e6bae.tar.gz
samba-245d0f1b3dd844c680bfa9b1d9e56d26305e6bae.tar.xz
samba-245d0f1b3dd844c680bfa9b1d9e56d26305e6bae.zip
s4:dsdb/samldb: remove fantasy code from samldb_user_account_control_change()
Setting UF_PASSWORD_EXPIRED doesn't reset "pwdLastSet" to "0"! Change-Id: I9e004195ad864b8b3fe036986b1087398d1f6fc5 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index a8dcf91f23c..c2fcdbbad5d 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -1573,16 +1573,6 @@ static int samldb_user_account_control_change(struct samldb_ctx *ac)
uac_generated = true;
}
if ((user_account_control & UF_PASSWORD_EXPIRED) != 0) {
- /* "pwdLastSet" reset as password expiration has been forced */
- ldb_msg_remove_attr(ac->msg, "pwdLastSet");
- ret = samdb_msg_add_uint64(ldb, ac->msg, ac->msg, "pwdLastSet",
- (NTTIME)0);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
- el = ldb_msg_find_element(ac->msg, "pwdLastSet");
- el->flags = LDB_FLAG_MOD_REPLACE;
-
user_account_control &= ~UF_PASSWORD_EXPIRED;
uac_generated = true;
}