s4:dsdb/samldb: fix comment "lockoutTime" reset as per MS-SAMR 3.1.1.8.10
authorStefan Metzmacher <metze@samba.org>
Fri, 27 May 2016 14:54:40 +0000 (16:54 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 27 Jun 2016 03:00:18 +0000 (05:00 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9654

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/samldb.c

index 9ce77e251e2188b0765f218bdc275831d5e93b4c..5dc62897ea30528e9d72e55652829814dd840dfc 100644 (file)
@@ -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);