summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-09-12 04:03:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:25 -0500
commit4de4af09426847d5f16361645dfa43dc75895189 (patch)
tree4df45c05204fa8b17c3512105d48203668e2ea6c
parent695cf5413ae2a9d690821c9e90c873909a0528ab (diff)
downloadsamba-4de4af09426847d5f16361645dfa43dc75895189.tar.gz
samba-4de4af09426847d5f16361645dfa43dc75895189.tar.bz2
samba-4de4af09426847d5f16361645dfa43dc75895189.zip
r18416: We need to look for both builtinDomain and domain, in the OpenDomain call.
Andrew Bartlett (This used to be commit 5525baf5217417308ffcebe2be3b4df445fddf75)
-rw-r--r--source4/rpc_server/samr/dcesrv_samr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/samr/dcesrv_samr.c b/source4/rpc_server/samr/dcesrv_samr.c
index 032e37c1dd..971541bf9d 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -387,7 +387,7 @@ static NTSTATUS samr_OpenDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *
ret = gendb_search(c_state->sam_ctx,
mem_ctx, NULL, &dom_msgs, dom_attrs,
- "(&(objectSid=%s)(&(objectclass=domain)))",
+ "(&(objectSid=%s)(&(|(objectclass=domain)(objectClass=builtinDomain))))",
ldap_encode_ndr_dom_sid(mem_ctx, r->in.sid));
if (ret == 0) {
return NT_STATUS_NO_SUCH_DOMAIN;