mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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.
This commit is contained in:
parent
bb531b0399
commit
7cf98abd03
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user