summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-15 17:18:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:08 -0500
commitad530af48d57904b6c5d70199ea19c80c6b7d7be (patch)
tree76bb03841de58ea7079493a21ecea0d6d79d094d /source4/rpc_server/samr
parent4a687bc44fa92a2a3c1848e7431ecc8c26bb9f31 (diff)
downloadsamba-ad530af48d57904b6c5d70199ea19c80c6b7d7be.tar.gz
samba-ad530af48d57904b6c5d70199ea19c80c6b7d7be.tar.bz2
samba-ad530af48d57904b6c5d70199ea19c80c6b7d7be.zip
r16262: Another basedn fix.
Andrew Bartlett (This used to be commit abf104a0d7c548af0a4744798c53064303a1dc3f)
Diffstat (limited to 'source4/rpc_server/samr')
-rw-r--r--source4/rpc_server/samr/samr_password.c2
1 files changed, 1 insertions, 1 deletions
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) {