From: Stefan Metzmacher Date: Fri, 27 May 2016 14:54:40 +0000 (+0200) Subject: s4:dsdb/samldb: fix comment "lockoutTime" reset as per MS-SAMR 3.1.1.8.10 X-Git-Tag: tdb-1.3.10~659 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bafa0166eef50162888454c11258e3ec5811ab8e;p=thirdparty%2Fsamba.git s4:dsdb/samldb: fix comment "lockoutTime" reset as per MS-SAMR 3.1.1.8.10 BUG: https://bugzilla.samba.org/show_bug.cgi?id=9654 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 9ce77e251e2..5dc62897ea3 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -2086,7 +2086,7 @@ static int samldb_user_account_control_change(struct samldb_ctx *ac) /* As per MS-SAMR 3.1.1.8.10 these flags have not to be set */ if ((clear_uac & UF_LOCKOUT) && (old_lockoutTime != 0)) { - /* "pwdLastSet" reset as password expiration has been forced */ + /* "lockoutTime" reset as per MS-SAMR 3.1.1.8.10 */ ldb_msg_remove_attr(ac->msg, "lockoutTime"); ret = samdb_msg_add_uint64(ldb, ac->msg, ac->msg, "lockoutTime", (NTTIME)0);