From ad530af48d57904b6c5d70199ea19c80c6b7d7be Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 15 Jun 2006 17:18:08 +0000 Subject: r16262: Another basedn fix. Andrew Bartlett (This used to be commit abf104a0d7c548af0a4744798c53064303a1dc3f) --- source4/rpc_server/samr/samr_password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c index 2d34d9afbf..4fbfaef09d 100644 --- a/source4/rpc_server/samr/samr_password.c +++ b/source4/rpc_server/samr/samr_password.c @@ -356,7 +356,7 @@ NTSTATUS samr_ChangePasswordUser3(struct dcesrv_call_state *dce_call, user SID). We also need the current lm and nt password hashes in order to decrypt the incoming passwords */ ret = gendb_search(sam_ctx, - mem_ctx, NULL, &res, attrs, + mem_ctx, samdb_base_dn(mem_ctx), &res, attrs, "(&(sAMAccountName=%s)(objectclass=user))", r->in.account->string); if (ret != 1) { -- cgit