summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-31 12:10:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:52 -0500
commit4a8b3041aa6c847657c6727c84f78195ac1faa58 (patch)
treec2e34c233f51bb722733b1e73c67fa879e7abce9
parent09d708e27e3c46a989dd670f369a47383fec373e (diff)
downloadsamba-4a8b3041aa6c847657c6727c84f78195ac1faa58.tar.gz
samba-4a8b3041aa6c847657c6727c84f78195ac1faa58.tar.bz2
samba-4a8b3041aa6c847657c6727c84f78195ac1faa58.zip
r4453: use lp_server_role(), which currently returns 3, for the dssetup
role. The value '5', which is what my w2k3 DC returns, doesn't work. I'm not sure why this is. with this change the GUI ACL editor from w2k3 works properly, with either server role in the HKLM registry. (This used to be commit 27a8b270bdd029a850c5ec3d10c1ac42468169cb)
-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);