summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/dssetup/dcesrv_dssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/dssetup/dcesrv_dssetup.c b/source4/rpc_server/dssetup/dcesrv_dssetup.c
index 4bc28bc475..bdf1c5af90 100644
--- a/source4/rpc_server/dssetup/dcesrv_dssetup.c
+++ b/source4/rpc_server/dssetup/dcesrv_dssetup.c
@@ -56,7 +56,7 @@ static WERROR ds_RolerGetPrimaryDomainInformation(struct dcesrv_call_state *dce_
if (r->out.info == NULL) {
return WERR_NOMEM;
}
- r->out.info->basic.role = 5;
+ r->out.info->basic.role = lp_server_role();
r->out.info->basic.flags = 0x01000003;
r->out.info->basic.domain = samdb_result_string(res[0], "name", NULL);
r->out.info->basic.dns_domain = samdb_result_string(res[0], "dnsDomain", NULL);