diff options
Diffstat (limited to 'source4/rpc_server/samr/dcesrv_samr.c')
-rw-r--r-- | source4/rpc_server/samr/dcesrv_samr.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 0bc90b872a..31c437e6f6 100644 --- a/source4/rpc_server/samr/dcesrv_samr.c +++ b/source4/rpc_server/samr/dcesrv_samr.c @@ -4388,19 +4388,16 @@ static NTSTATUS dcesrv_samr_ValidatePassword(struct dcesrv_call_state *dce_call, case NetValidatePasswordChange: password = data_blob_const(r->in.req->req2.password.string, r->in.req->req2.password.length); - res = samdb_check_password(mem_ctx, - dce_call->conn->dce_ctx->lp_ctx, - &password, + res = samdb_check_password(&password, pwInfo.password_properties, pwInfo.min_password_length); (*r->out.rep)->ctr2.status = res; break; case NetValidatePasswordReset: +printf("Length/Size: %i|%i\n", r->in.req->req3.password.length, r->in.req->req3.password.size); password = data_blob_const(r->in.req->req3.password.string, r->in.req->req3.password.length); - res = samdb_check_password(mem_ctx, - dce_call->conn->dce_ctx->lp_ctx, - &password, + res = samdb_check_password(&password, pwInfo.password_properties, pwInfo.min_password_length); (*r->out.rep)->ctr3.status = res; |