From 7cf98abd031e819d884c08d2968afb3989446b7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Fri, 6 Nov 2009 15:17:22 +0100 Subject: [PATCH] s4:dcesrv_samr_ValidatePassword - adapt call to "samdb_check_password" I've forgotten that PIDL converts UTF16 parameters automatically back to the UNIX charset (in most cases UTF16). So I don't have to do this here. --- source4/rpc_server/samr/dcesrv_samr.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c index 0bc90b872a6..31c437e6f67 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; -- 2.34.1