s3-auth: Fixed account lockout check.
authorAndreas Schneider <asn@samba.org>
Mon, 17 Jan 2011 11:53:40 +0000 (12:53 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 17 Jan 2011 15:50:50 +0000 (16:50 +0100)
source3/passdb/pdb_interface.c

index 1361c178b661585fe84e248ef2f701a031d92d21..b48f40958f426e47a0ba6207c88fcdb4b5fe2964 100644 (file)
@@ -235,7 +235,7 @@ static bool pdb_try_account_unlock(struct samu *sampass)
 {
        uint32_t acb_info = pdb_get_acct_ctrl(sampass);
 
-       if (acb_info & (ACB_NORMAL|ACB_AUTOLOCK)) {
+       if ((acb_info & ACB_NORMAL) && (acb_info & ACB_AUTOLOCK)) {
                uint32_t lockout_duration;
                time_t bad_password_time;
                time_t now = time(NULL);