s3:srv_samr_chgpasswd: export SAMBA_CPS_{ACCOUNT,USER_PRINCIPAL,FULL}_NAME for check...
[sfrench/samba-autobuild/.git] / source3 / rpc_server / samr / srv_samr_nt.c
index 70a2efa4ca63d8ed77f90c4e68258f7a50e5cc62..124d6d38cd707ea46716e1eb18a9165fd52150b5 100644 (file)
@@ -6725,6 +6725,7 @@ static enum samr_ValidationStatus samr_ValidatePassword_Change(TALLOC_CTX *mem_c
        }
        if (dom_pw_info->password_properties & DOMAIN_PASSWORD_COMPLEX) {
                status = check_password_complexity(req->account.string,
+                                                  NULL, /* full_name */
                                                   req->password.string,
                                                   NULL);
                if (!NT_STATUS_IS_OK(status)) {
@@ -6755,6 +6756,7 @@ static enum samr_ValidationStatus samr_ValidatePassword_Reset(TALLOC_CTX *mem_ct
        }
        if (dom_pw_info->password_properties & DOMAIN_PASSWORD_COMPLEX) {
                status = check_password_complexity(req->account.string,
+                                                  NULL, /* full_name */
                                                   req->password.string,
                                                   NULL);
                if (!NT_STATUS_IS_OK(status)) {