summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-08-22 19:57:53 +0000
committerTim Potter <tpot@samba.org>2002-08-22 19:57:53 +0000
commit7d81e7757059686ae2c57748edfe6b948347748c (patch)
treeea10f99f35d87467301c4e81eb7b8ddcc484ea6c /source3/param
parent7490b8c2c74c18c675902f3d6b7c48320d891858 (diff)
downloadsamba-7d81e7757059686ae2c57748edfe6b948347748c.tar.gz
samba-7d81e7757059686ae2c57748edfe6b948347748c.tar.bz2
samba-7d81e7757059686ae2c57748edfe6b948347748c.zip
Put back in BDC support in set_server_role(). Tidied up debugs.
(This used to be commit 08d7d6ffa65568209e953a2834d263cf3537064e)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 966124039f..6fb8cd896a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3496,32 +3496,46 @@ static void set_server_role(void)
case SEC_SHARE:
if (lp_domain_logons())
DEBUG(0, ("Server's Role (logon server) conflicts with share-level security\n"));
- DEBUG(10,("set_server_role: ROLE_STANDALONE\n"));
break;
case SEC_SERVER:
case SEC_DOMAIN:
case SEC_ADS:
if (lp_domain_logons()) {
server_role = ROLE_DOMAIN_PDC;
- DEBUG(10,("set_server_role:ROLE_DOMAIN_PDC\n"));
break;
}
server_role = ROLE_DOMAIN_MEMBER;
- DEBUG(10,("set_server_role: ROLE_DOMAIN_MEMBER\n"));
break;
case SEC_USER:
if (lp_domain_logons()) {
- server_role = ROLE_DOMAIN_PDC;
- DEBUG(10,("set_server_role: ROLE_DOMAIN_PDC\n"));
- break;
+
+ if (lp_domain_master())
+ server_role = ROLE_DOMAIN_PDC;
+ else
+ server_role = ROLE_DOMAIN_BDC;
}
- DEBUG(10,("set_server_role: ROLE_STANDALONE\n"));
break;
default:
DEBUG(0, ("Server's Role undefined due to unknown security mode\n"));
- DEBUG(10,("set_server_role: ROLE_STANDALONE\n"));
break;
}
+
+ DEBUG(10, ("set_server_role: role = "));
+
+ switch(server_role) {
+ case ROLE_STANDALONE:
+ DEBUGADD(10, ("ROLE_STANDALONE\n"));
+ break;
+ case ROLE_DOMAIN_MEMBER:
+ DEBUGADD(10, ("ROLE_DOMAIN_MEMBER\n"));
+ break;
+ case ROLE_DOMAIN_BDC:
+ DEBUGADD(10, ("ROLE_DOMAIN_BDC\n"));
+ break;
+ case ROLE_DOMAIN_PDC:
+ DEBUGADD(10, ("ROLE_DOMAIN_PDC\n"));
+ break;
+ }
}