summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-25 15:01:38 +0000
committerJim McDonough <jmcd@samba.org>2004-02-25 15:01:38 +0000
commitf6b68d962f15c464f3ade953b4651f33733cfd2f (patch)
tree6ba8f5256d021ea7a8aeeb4983fe5070730b4453 /source3
parent538633b0f8da19687b16df3d7d424227a2e0fd90 (diff)
downloadsamba-f6b68d962f15c464f3ade953b4651f33733cfd2f.tar.gz
samba-f6b68d962f15c464f3ade953b4651f33733cfd2f.tar.bz2
samba-f6b68d962f15c464f3ade953b4651f33733cfd2f.zip
reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit 08a7c9697d49719e4cfb32a06720873c98585f67)
Diffstat (limited to 'source3')
-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 a087e28f09..10069abb76 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -4502,8 +4502,8 @@ NTSTATUS _samr_set_dom_info(pipes_struct *p, SAMR_Q_SET_DOMAIN_INFO *q_u, SAMR_R
case 0x07:
break;
case 0x0c:
- u_lock_duration=nt_time_to_unix_abs(&q_u->ctr->info.inf12.duration);
- u_reset_time=nt_time_to_unix_abs(&q_u->ctr->info.inf12.reset_count);
+ u_lock_duration=nt_time_to_unix_abs(&q_u->ctr->info.inf12.duration)/60;
+ u_reset_time=nt_time_to_unix_abs(&q_u->ctr->info.inf12.reset_count)/60;
account_policy_set(AP_LOCK_ACCOUNT_DURATION, (int)u_lock_duration);
account_policy_set(AP_RESET_COUNT_TIME, (int)u_reset_time);