diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-11 11:12:52 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-11 11:44:07 +0200 |
commit | 92fd0fdd790d9a0fbb1e82e5dc7acbc1a193a7ca (patch) | |
tree | 24c542e775052732d15e89a7219f9399c685686f | |
parent | 657af5a27480ac7fbcaa4fa4b67bbf496da32a35 (diff) | |
download | samba-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
-rw-r--r-- | lib/param/loadparm_server_role.c | 5 |
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; } |