summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-01-17 12:53:40 +0100
committerAndreas Schneider <asn@samba.org>2011-01-17 16:50:50 +0100
commitad6560564350616b2925d097460876bd56555acf (patch)
tree476306a995e04a7a117ee669e0bfcbdf87697490 /source3/passdb
parent9b94f3660531e7c5e4dc4345227f781910c54f79 (diff)
downloadsamba-ad6560564350616b2925d097460876bd56555acf.tar.gz
samba-ad6560564350616b2925d097460876bd56555acf.tar.bz2
samba-ad6560564350616b2925d097460876bd56555acf.zip
s3-auth: Fixed account lockout check.
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c
index 1361c178b6..b48f40958f 100644
--- a/source3/passdb/pdb_interface.c
+++ b/source3/passdb/pdb_interface.c
@@ -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);