summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-25 20:02:47 +0000
committerJim McDonough <jmcd@samba.org>2004-02-25 20:02:47 +0000
commitaf6f7254a9873a34fb391f1fd78aadadbc796063 (patch)
treebd44acfee50bd2dad6a2f90a5ade6499feff4366
parent8ccdcb3f1c6b89b01a5ad067e56e7677e1ba63cd (diff)
downloadsamba-af6f7254a9873a34fb391f1fd78aadadbc796063.tar.gz
samba-af6f7254a9873a34fb391f1fd78aadadbc796063.tar.bz2
samba-af6f7254a9873a34fb391f1fd78aadadbc796063.zip
Do the query part of the previous fix...reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit 98833a82facb0bc25d9ba6f4d4c1200627e98d6d)
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 10069abb76..58dcd48d8d 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2081,10 +2081,10 @@ NTSTATUS _samr_query_dom_info(pipes_struct *p, SAMR_Q_QUERY_DOMAIN_INFO *q_u, SA
break;
case 0x0c:
account_policy_get(AP_LOCK_ACCOUNT_DURATION, &account_policy_temp);
- u_lock_duration = account_policy_temp;
+ u_lock_duration = account_policy_temp * 60;
account_policy_get(AP_RESET_COUNT_TIME, &account_policy_temp);
- u_reset_time = account_policy_temp;
+ u_reset_time = account_policy_temp * 60;
account_policy_get(AP_BAD_ATTEMPT_LOCKOUT, &account_policy_temp);
lockout = account_policy_temp;