git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3b2db5
)
r10148: Use samdb_base_dn() to find the local domain.
author
Andrew Bartlett
<abartlet@samba.org>
Sat, 10 Sep 2005 22:13:50 +0000
(22:13 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:38:03 +0000
(13:38 -0500)
Andrew Bartlett
(This used to be commit
4969f86ac29aa1c4371a5cd01551f45c7fdb4cb2
)
source4/ntvfs/common/sidmap.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/common/sidmap.c
b/source4/ntvfs/common/sidmap.c
index b29f197b34269f8e6c1ad2a227edef278ada326e..95d2b756d90e10546a6c14a3b951d0846508f210 100644
(file)
--- a/
source4/ntvfs/common/sidmap.c
+++ b/
source4/ntvfs/common/sidmap.c
@@
-100,8
+100,8
@@
static NTSTATUS sidmap_primary_domain_sid(struct sidmap_context *sidmap,
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;