summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-03-11 09:16:37 +0000
committerSimo Sorce <idra@samba.org>2003-03-11 09:16:37 +0000
commitd40890e6a05badaac4b41979890a17ef1e69b5f7 (patch)
tree8f91f357a97ace165631d763868fea181d80f668 /source3/param
parent2e01ef5957bcdecb057d94122529b7cbd7f40ec2 (diff)
downloadsamba-d40890e6a05badaac4b41979890a17ef1e69b5f7.tar.gz
samba-d40890e6a05badaac4b41979890a17ef1e69b5f7.tar.bz2
samba-d40890e6a05badaac4b41979890a17ef1e69b5f7.zip
This is how combination of domain logons and security parameter best combine.
Comments wellcome. Simo. (This used to be commit e1431424e7603d946f63cfe7fe669b0b32ac8095)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index f7f12bbe80..2a83905a9f 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3804,14 +3804,14 @@ static void set_server_role(void)
switch (lp_security()) {
case SEC_SHARE:
+ case SEC_SERVER:
+ case SEC_ADS:
if (lp_domain_logons())
DEBUG(0, ("Server's Role (logon server) conflicts with share-level security\n"));
break;
- case SEC_SERVER:
case SEC_DOMAIN:
- case SEC_ADS:
if (lp_domain_logons()) {
- server_role = ROLE_DOMAIN_PDC;
+ server_role = ROLE_DOMAIN_BDC;
break;
}
server_role = ROLE_DOMAIN_MEMBER;