Author: abartlet
Date: 2005-09-10 22:13:50 +0000 (Sat, 10 Sep 2005)
New Revision: 10148

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10148

Log:
Use samdb_base_dn() to find the local domain.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/ntvfs/common/sidmap.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/common/sidmap.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/common/sidmap.c     2005-09-10 11:01:12 UTC 
(rev 10147)
+++ branches/SAMBA_4_0/source/ntvfs/common/sidmap.c     2005-09-10 22:13:50 UTC 
(rev 10148)
@@ -100,8 +100,8 @@
        int ret;
        struct ldb_message **res = NULL;
 
-       ret = gendb_search(sidmap->samctx, mem_ctx, NULL, &res, attrs, 
-                          "(&(objectClass=domain)(name=%s))", lp_workgroup());
+       ret = gendb_search_dn(sidmap->samctx, mem_ctx, samdb_base_dn(mem_ctx), 
+                             &res, attrs);
        if (ret != 1) {
                talloc_free(res);
                return NT_STATUS_NO_SUCH_DOMAIN;

Reply via email to