summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr/dcesrv_samr.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 15:17:22 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-11-06 15:19:40 +0100
commit7cf98abd031e819d884c08d2968afb3989446b7c (patch)
tree495fa3ab6e3db933d5df88dc7f1a4d16bcc708e0 /source4/rpc_server/samr/dcesrv_samr.c
parentbb531b039902fa613d7462e0bc2114326808d9fe (diff)
downloadsamba-7cf98abd031e819d884c08d2968afb3989446b7c.tar.gz
samba-7cf98abd031e819d884c08d2968afb3989446b7c.tar.bz2
samba-7cf98abd031e819d884c08d2968afb3989446b7c.zip
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.
Diffstat (limited to 'source4/rpc_server/samr/dcesrv_samr.c')
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c9
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;