From 7b4c02bf05c9c9508ce15cf0843dad1a354a5547 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 2 Jan 2005 16:06:21 +0000 Subject: r4482: in ads mixed mode there are also only one PDC and multiple BDC's metze (This used to be commit 30980d218495d389d7a5db4b190ed717217c08d4) --- source4/param/loadparm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 524511d1b5..e06daf92c1 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2965,7 +2965,10 @@ static void set_server_role(void) case SEC_DOMAIN: case SEC_ADS: if (lp_domain_logons()) { - server_role = ROLE_DOMAIN_PDC; + if (Globals.bDomainMaster) /* auto or yes */ + server_role = ROLE_DOMAIN_PDC; + else + server_role = ROLE_DOMAIN_BDC; break; } server_role = ROLE_DOMAIN_MEMBER; -- cgit