mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r18416: We need to look for both builtinDomain and domain, in the OpenDomain call.
Andrew Bartlett
(This used to be commit 5525baf521
)
This commit is contained in:
parent
695cf5413a
commit
4de4af0942
@ -387,7 +387,7 @@ static NTSTATUS samr_OpenDomain(struct dcesrv_call_state *dce_call, TALLOC_CTX *
|
|||||||
|
|
||||||
ret = gendb_search(c_state->sam_ctx,
|
ret = gendb_search(c_state->sam_ctx,
|
||||||
mem_ctx, NULL, &dom_msgs, dom_attrs,
|
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));
|
ldap_encode_ndr_dom_sid(mem_ctx, r->in.sid));
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
return NT_STATUS_NO_SUCH_DOMAIN;
|
return NT_STATUS_NO_SUCH_DOMAIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user