mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r21356: we have a function to get the sites dn
also it's not always under the domain dn
metze
(This used to be commit b8c940f1e2)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
4878c4c782
commit
ced4976d94
@@ -395,15 +395,11 @@ static WERROR dcesrv_drsuapi_DsGetDomainControllerInfo_1(struct drsuapi_bind_sta
|
||||
|
||||
r->out.level_out = r->in.req.req1.level;
|
||||
|
||||
sites_dn = samdb_domain_to_dn(b_state->sam_ctx, mem_ctx, r->in.req.req1.domain_name);
|
||||
sites_dn = samdb_sites_dn(b_state->sam_ctx, mem_ctx);
|
||||
if (!sites_dn) {
|
||||
return WERR_DS_OBJ_NOT_FOUND;
|
||||
}
|
||||
|
||||
if (!ldb_dn_add_child_fmt(sites_dn, "CN=Sites,CN=Configuration")) {
|
||||
return WERR_NOMEM;
|
||||
}
|
||||
|
||||
switch (r->out.level_out) {
|
||||
case -1:
|
||||
/* this level is not like the others */
|
||||
|
||||
Reference in New Issue
Block a user