summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-20 20:16:03 +0200
committerGünther Deschner <gd@samba.org>2008-10-20 20:16:03 +0200
commitf3843e330f312b72a24563417309159b0d99dc50 (patch)
treef101457b914904268e81ba6f5486d57776976b88 /source3
parent4b59ecb90319e6e574ff7444015078bac7da631a (diff)
downloadsamba-f3843e330f312b72a24563417309159b0d99dc50.tar.gz
samba-f3843e330f312b72a24563417309159b0d99dc50.tar.bz2
samba-f3843e330f312b72a24563417309159b0d99dc50.zip
s3-samr-server: be consistent when reporting we do password complexity.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 6cf90be6d9..e527631cc1 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2909,6 +2909,10 @@ static NTSTATUS samr_QueryDomainInfo_internal(const char *fn_name,
unix_to_nt_time_abs(&nt_expire, u_expire);
unix_to_nt_time_abs(&nt_min_age, u_min_age);
+ if (lp_check_password_script() && *lp_check_password_script()) {
+ password_properties |= DOMAIN_PASSWORD_COMPLEX;
+ }
+
init_samr_DomInfo1(&dom_info->info1,
(uint16)min_pass_len,
(uint16)pass_hist,