r16262: Another basedn fix.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 15 Jun 2006 17:18:08 +0000 (17:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:08 +0000 (14:09 -0500)
Andrew Bartlett

source/rpc_server/samr/samr_password.c

index 2d34d9afbf34d643de548da9d3d4714ba1c84430..4fbfaef09d33ac0c32bf1293f0f83ff210093bff 100644 (file)
@@ -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) {