From 9524e2fce1b7f644fef5f7c8134f72681d786e65 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 10 Nov 2011 12:45:54 +1100 Subject: param: calculate server role from security, and security from server role This allows smb.conf files from either the samba3 or samba4 tradition to come to the same value of server role, using the information in the smb.conf file. This is important so that tools like 'net getlocalsid' work against a Samba4 AD installation (yes, users have tried this). Andrew Bartlett Pair-Programmed-With: Amitay Isaacs --- libds/common/roles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libds/common/roles.h') diff --git a/libds/common/roles.h b/libds/common/roles.h index f6f04758dd..67236032bc 100644 --- a/libds/common/roles.h +++ b/libds/common/roles.h @@ -43,6 +43,6 @@ enum server_role { #define ROLE_DOMAIN_CONTROLLER ROLE_DOMAIN_BDC /* security levels for 'security =' option */ -enum security_types {SEC_SHARE,SEC_USER,SEC_SERVER,SEC_DOMAIN,SEC_ADS}; +enum security_types {SEC_AUTO, SEC_SHARE,SEC_USER,SEC_SERVER,SEC_DOMAIN,SEC_ADS}; #endif /* _LIBDS_ROLES_H_ */ -- cgit