r4482: in ads mixed mode there are also only one PDC and multiple BDC's
authorStefan Metzmacher <metze@samba.org>
Sun, 2 Jan 2005 16:06:21 +0000 (16:06 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:11 +0000 (13:08 -0500)
metze
(This used to be commit 30980d218495d389d7a5db4b190ed717217c08d4)

source4/param/loadparm.c

index 524511d1b54eff6786d07e687f8e47060e6ffffc..e06daf92c1944452a6086353fa87605d67acda10 100644 (file)
@@ -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;