summaryrefslogtreecommitdiff
path: root/lib/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-11 11:12:52 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-11 11:44:07 +0200
commit92fd0fdd790d9a0fbb1e82e5dc7acbc1a193a7ca (patch)
tree24c542e775052732d15e89a7219f9399c685686f /lib/param
parent657af5a27480ac7fbcaa4fa4b67bbf496da32a35 (diff)
downloadsamba-92fd0fdd790d9a0fbb1e82e5dc7acbc1a193a7ca.tar.gz
samba-92fd0fdd790d9a0fbb1e82e5dc7acbc1a193a7ca.tar.bz2
samba-92fd0fdd790d9a0fbb1e82e5dc7acbc1a193a7ca.zip
lib/param: simplfy lp_find_security()
All the roles other than ROLE_DOMAIN_MEMBER map to SEC_USER. Andrew Bartlett
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/loadparm_server_role.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/param/loadparm_server_role.c b/lib/param/loadparm_server_role.c
index 9ff64be046..5a1f4984fe 100644
--- a/lib/param/loadparm_server_role.c
+++ b/lib/param/loadparm_server_role.c
@@ -117,17 +117,12 @@ int lp_find_security(int server_role, int security)
}
switch (server_role) {
- case ROLE_AUTO:
- case ROLE_STANDALONE:
- return SEC_USER;
case ROLE_DOMAIN_MEMBER:
#if (defined(HAVE_ADS) || _SAMBA_BUILD_ >= 4)
return SEC_ADS;
#else
return SEC_DOMAIN;
#endif
- case ROLE_DOMAIN_PDC:
- case ROLE_DOMAIN_BDC:
default:
return SEC_USER;
}