]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-samr-server: be consistent when reporting we do password complexity.
authorGünther Deschner <gd@samba.org>
Mon, 20 Oct 2008 18:16:03 +0000 (20:16 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 20 Oct 2008 18:20:42 +0000 (20:20 +0200)
Guenther

source/rpc_server/srv_samr_nt.c

index a89e00f1ec97601130cdfd611d94307a88057153..c59a46c1da8cab781c28f854feaeb8d5cee68a3f 100644 (file)
@@ -2910,6 +2910,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,