diff options
author | Günther Deschner <gd@samba.org> | 2005-01-20 21:42:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:06 -0500 |
commit | 2b21e9004f3898c32776fa4c2e0d813177c39153 (patch) | |
tree | 53d820cdee984b6a24d9d1cb4a7adbaecf7a8ea5 /source3 | |
parent | b3b315078e747c37b5330def90f2103ab1a549fb (diff) | |
download | samba-2b21e9004f3898c32776fa4c2e0d813177c39153.tar.gz samba-2b21e9004f3898c32776fa4c2e0d813177c39153.tar.bz2 samba-2b21e9004f3898c32776fa4c2e0d813177c39153.zip |
r4877: When vampiring account policy AP_LOCK_ACCOUNT_DURATION honour "Lockout
Duration: Forever".
Guenther
(This used to be commit aecacf4d9cc5e2aa69b358292b9d591ade696500)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 3ef2388bbc..320341ec05 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -1021,7 +1021,10 @@ static NTSTATUS fetch_domain_info(uint32 rid, SAM_DOMAIN_INFO *delta) if (!account_policy_set(AP_RESET_COUNT_TIME, (uint32)u_lockoutreset/60)) return nt_status; - if (!account_policy_set(AP_LOCK_ACCOUNT_DURATION, (uint32)u_lockouttime/60)) + if (u_lockouttime != -1) + u_lockouttime /= 60; + + if (!account_policy_set(AP_LOCK_ACCOUNT_DURATION, (uint32)u_lockouttime)) return nt_status; if (!account_policy_set(AP_USER_MUST_LOGON_TO_CHG_PASS, delta->logon_chgpass)) |