1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libds: moved enum security_types to a common header

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andrew Tridgell 2011-05-07 13:32:20 +02:00 committed by Andrew Bartlett
parent c3bb5b04e2
commit 8b2ba64d60
4 changed files with 5 additions and 5 deletions

View File

@ -39,4 +39,7 @@ enum server_role {
*/ */
#define ROLE_DOMAIN_CONTROLLER ROLE_DOMAIN_BDC #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};
#endif /* _LIBDS_ROLES_H_ */ #endif /* _LIBDS_ROLES_H_ */

View File

@ -1296,9 +1296,6 @@ enum protocol_types {
PROTOCOL_SMB2 PROTOCOL_SMB2
}; };
/* security levels */
enum security_types {SEC_SHARE,SEC_USER,SEC_SERVER,SEC_DOMAIN,SEC_ADS};
/* printing types */ /* printing types */
enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX, enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX,
PRINT_QNX,PRINT_PLP,PRINT_LPRNG,PRINT_SOFTQ, PRINT_QNX,PRINT_PLP,PRINT_LPRNG,PRINT_SOFTQ,

View File

@ -264,6 +264,7 @@ static const struct enum_list enum_protocol[] = {
static const struct enum_list enum_security[] = { static const struct enum_list enum_security[] = {
{SEC_SHARE, "SHARE"}, {SEC_SHARE, "SHARE"},
{SEC_USER, "USER"}, {SEC_USER, "USER"},
{SEC_ADS, "ADS"},
{-1, NULL} {-1, NULL}
}; };

View File

@ -22,6 +22,7 @@
#include "libcli/raw/request.h" #include "libcli/raw/request.h"
#include "libcli/raw/interfaces.h" #include "libcli/raw/interfaces.h"
#include "lib/socket/socket.h" #include "lib/socket/socket.h"
#include "libds/common/roles.h"
#include "../lib/util/dlinklist.h" #include "../lib/util/dlinklist.h"
#include "../librpc/gen_ndr/nbt.h" #include "../librpc/gen_ndr/nbt.h"
@ -265,8 +266,6 @@ struct smbsrv_request {
struct smb_request_buffer out; struct smb_request_buffer out;
}; };
enum security_types {SEC_SHARE,SEC_USER};
/* smb server context structure. This should contain all the state /* smb server context structure. This should contain all the state
* information associated with a SMB server connection * information associated with a SMB server connection
*/ */