mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r21356: we have a function to get the sites dn
also it's not always under the domain dn metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
cdfd4ee8e5
commit
b8c940f1e2
@@ -395,15 +395,11 @@ static WERROR dcesrv_drsuapi_DsGetDomainControllerInfo_1(struct drsuapi_bind_sta
|
|||||||
|
|
||||||
r->out.level_out = r->in.req.req1.level;
|
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) {
|
if (!sites_dn) {
|
||||||
return WERR_DS_OBJ_NOT_FOUND;
|
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) {
|
switch (r->out.level_out) {
|
||||||
case -1:
|
case -1:
|
||||||
/* this level is not like the others */
|
/* this level is not like the others */
|
||||||
|
|||||||
Reference in New Issue
Block a user