diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-15 11:57:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:18 -0500 |
commit | ced4976d94b89c2c38473622372f617429152a18 (patch) | |
tree | 275a6f1aed3bd83a19567e91de1a8b7801b3e8ea /source4/rpc_server | |
parent | 4878c4c782eb34c6ae9732eb6eaf68b45fe89de1 (diff) | |
download | samba-ced4976d94b89c2c38473622372f617429152a18.tar.gz samba-ced4976d94b89c2c38473622372f617429152a18.tar.bz2 samba-ced4976d94b89c2c38473622372f617429152a18.zip |
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 b8c940f1e2bbd65ed5d2f4279434dd526456ad8b)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/drsuapi/dcesrv_drsuapi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c index 1a498012c5..833413dd08 100644 --- a/source4/rpc_server/drsuapi/dcesrv_drsuapi.c +++ b/source4/rpc_server/drsuapi/dcesrv_drsuapi.c @@ -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 */ |