SQ test_userPassword_lockout_with_clear_change use reset_ldap
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Mar 2014 15:16:03 +0000 (16:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Mar 2014 19:37:05 +0000 (20:37 +0100)
source4/dsdb/tests/python/password_lockout.py

index 9d5aadf1f33f87da27030ef354def9235b433980..63a49127dd537ce8784a0faafef49fc243ef183d 100755 (executable)
@@ -675,12 +675,12 @@ unicodePwd:: """ + base64.b64encode("\"thatsAcomplPASS2x\"".encode('utf-16-le'))
                                     dsdb.UF_NORMAL_ACCOUNT,
                                   msDSUserAccountControlComputed=dsdb.UF_LOCKOUT)
 
-        time.sleep(account_lockout_duration + 1)
+        self._reset_ldap("cn=testuser,cn=users," + self.base_dn)
 
         res = self._check_account("cn=testuser,cn=users," + self.base_dn,
-                                  badPwdCount=3, samr_bad_password_count=0,
+                                  badPwdCount=0,
                                   badPasswordTime=badPasswordTime,
-                                  lockoutTime=lockoutTime,
+                                  lockoutTime=0,
                                   userAccountControl=
                                     dsdb.UF_NORMAL_ACCOUNT,
                                   msDSUserAccountControlComputed=0)
@@ -697,9 +697,9 @@ unicodePwd:: """ + base64.b64encode("\"thatsAcomplPASS2x\"".encode('utf-16-le'))
 """)
 
         res = self._check_account("cn=testuser,cn=users," + self.base_dn,
-                                  badPwdCount=3, samr_bad_password_count=0,
+                                  badPwdCount=0,
                                   badPasswordTime=badPasswordTime,
-                                  lockoutTime=lockoutTime,
+                                  lockoutTime=0,
                                   userAccountControl=
                                     dsdb.UF_NORMAL_ACCOUNT,
                                   msDSUserAccountControlComputed=0)