summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-25 19:57:26 +0000
committerGerald Carter <jerry@samba.org>2003-07-25 19:57:26 +0000
commit37d77e3d6cf85eae9f45d18b756101fc1f50460b (patch)
tree1be8f5c5ceb135e32c01c468e440002f5dca70cd
parent6ec2213bdb163b5301196a0dddb53086e6aa0fe8 (diff)
downloadsamba-37d77e3d6cf85eae9f45d18b756101fc1f50460b.tar.gz
samba-37d77e3d6cf85eae9f45d18b756101fc1f50460b.tar.bz2
samba-37d77e3d6cf85eae9f45d18b756101fc1f50460b.zip
Fix bug #184; set max_pw_age in account_pol to -1 so the default is never to expire
(This used to be commit 833bc5c06018043cf0eb6bdcbb96922964286559)
-rw-r--r--source3/lib/account_pol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index e8b382c7ab..dc131985a1 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -53,7 +53,7 @@ BOOL init_account_policy(void)
account_policy_set(AP_MIN_PASSWORD_LEN, MINPASSWDLENGTH); /* 5 chars minimum */
account_policy_set(AP_PASSWORD_HISTORY, 0); /* don't keep any old password */
account_policy_set(AP_USER_MUST_LOGON_TO_CHG_PASS, 0); /* don't force user to logon */
- account_policy_set(AP_MAX_PASSWORD_AGE, MAX_PASSWORD_AGE); /* 21 days */
+ account_policy_set(AP_MAX_PASSWORD_AGE, (uint32)-1); /* don't expire */
account_policy_set(AP_MIN_PASSWORD_AGE, 0); /* 0 days */
account_policy_set(AP_LOCK_ACCOUNT_DURATION, 0); /* lockout for 0 minutes */
account_policy_set(AP_RESET_COUNT_TIME, 0); /* reset immediatly */