summaryrefslogtreecommitdiff
path: root/source4/rpc_server/samr
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-13 11:36:58 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-13 11:36:58 +1100
commit0c882402360a10b19a038bce9f87e241051c9ba8 (patch)
tree8960d76500aa521aaad5a33ba3ae3146d782c338 /source4/rpc_server/samr
parent58edd6d17951553cb6b693b37ce88454668b1c50 (diff)
downloadsamba-0c882402360a10b19a038bce9f87e241051c9ba8.tar.gz
samba-0c882402360a10b19a038bce9f87e241051c9ba8.tar.bz2
samba-0c882402360a10b19a038bce9f87e241051c9ba8.zip
Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use CN=NETBIOSNAME as the domain for member servers. This makes it clear that these domains are not in the DNS structure, while complying with our own schema (found by OpenLDAP's schema validation). Andrew Bartlett (This used to be commit bda6a38b055fed2394e65cdc0b308a1442116402)
Diffstat (limited to 'source4/rpc_server/samr')
-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 8193e0a882..da03d83dbc 100644
--- a/source4/rpc_server/samr/dcesrv_samr.c
+++ b/source4/rpc_server/samr/dcesrv_samr.c
@@ -425,7 +425,7 @@ static NTSTATUS dcesrv_samr_OpenDomain(struct dcesrv_call_state *dce_call, TALLO
ret = gendb_search(c_state->sam_ctx,
mem_ctx, NULL, &dom_msgs, dom_attrs,
- "(&(objectSid=%s)(&(|(objectclass=domain)(objectClass=builtinDomain))))",
+ "(&(objectSid=%s)(|(|(objectClass=domain)(objectClass=builtinDomain))(objectClass=samba4LocalDomain)))",
ldap_encode_ndr_dom_sid(mem_ctx, r->in.sid));
if (ret == 0) {
return NT_STATUS_NO_SUCH_DOMAIN;