From 4a8b3041aa6c847657c6727c84f78195ac1faa58 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 31 Dec 2004 12:10:35 +0000 Subject: 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) --- source4/rpc_server/dssetup/dcesrv_dssetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/rpc_server') 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); -- cgit