summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-02 16:06:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:11 -0500
commit7b4c02bf05c9c9508ce15cf0843dad1a354a5547 (patch)
treef2eadd4555dd59dcb1cfe746182bef34475f7ddc
parentfe07db9ca736d130a77c673d5b716365a39f289e (diff)
downloadsamba-7b4c02bf05c9c9508ce15cf0843dad1a354a5547.tar.gz
samba-7b4c02bf05c9c9508ce15cf0843dad1a354a5547.tar.bz2
samba-7b4c02bf05c9c9508ce15cf0843dad1a354a5547.zip
r4482: in ads mixed mode there are also only one PDC and multiple BDC's
metze (This used to be commit 30980d218495d389d7a5db4b190ed717217c08d4)
-rw-r--r--source4/param/loadparm.c5
1 files changed, 4 insertions, 1 deletions
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;