r4453: use lp_server_role(), which currently returns 3, for the dssetup
authorAndrew Tridgell <tridge@samba.org>
Fri, 31 Dec 2004 12:10:35 +0000 (12:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:52 +0000 (13:07 -0500)
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

index 4bc28bc4755866840f70c6365cb05e18072a4c77..bdf1c5af90209d4b0f2bd9448c3fd7961cf83957 100644 (file)
@@ -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);