1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-02 20:23:50 +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:
Stefan Metzmacher
2007-02-15 11:57:23 +00:00
committed by Gerald (Jerry) Carter
parent cdfd4ee8e5
commit b8c940f1e2

View File

@@ -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 */