summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-11-15 13:27:14 -0800
committerJeremy Allison <jra@samba.org>2011-11-16 00:22:41 +0100
commit3ede4ffe969f806ba2363b62c09673c32a4ec296 (patch)
tree42c38a87a34962c8b908e3a194cb99d62886571a /source3/rpc_server
parent65566dfa8629136eaf0dc1491502dc651d1a4858 (diff)
downloadsamba-3ede4ffe969f806ba2363b62c09673c32a4ec296.tar.gz
samba-3ede4ffe969f806ba2363b62c09673c32a4ec296.tar.bz2
samba-3ede4ffe969f806ba2363b62c09673c32a4ec296.zip
Fix bug #8561 - Password change settings not fully observed.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/samr/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/samr/srv_samr_nt.c b/source3/rpc_server/samr/srv_samr_nt.c
index 58892b7443..ebe6e451d4 100644
--- a/source3/rpc_server/samr/srv_samr_nt.c
+++ b/source3/rpc_server/samr/srv_samr_nt.c
@@ -2855,7 +2855,7 @@ static NTSTATUS get_user_info_21(TALLOC_CTX *mem_ctx,
unix_to_nt_time(&r->allow_password_change, pdb_get_pass_can_change_time(pw));
must_change_time = pdb_get_pass_must_change_time(pw);
- if (must_change_time == get_time_t_max()) {
+ if (pdb_is_password_change_time_max(must_change_time)) {
unix_to_nt_time_abs(&force_password_change, must_change_time);
} else {
unix_to_nt_time(&force_password_change, must_change_time);