s3-include: use new roles.h
authorAndrew Tridgell <tridge@samba.org>
Mon, 2 May 2011 02:05:02 +0000 (12:05 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 May 2011 05:37:07 +0000 (07:37 +0200)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source3/auth/auth_ntlmssp.c
source3/include/smb.h

index 58974210dd99040edfd499f35f329239ea37ed93..4151ebaf9d88fb45089e17398b7589ad0fabffb4 100644 (file)
@@ -184,7 +184,7 @@ NTSTATUS auth_ntlmssp_start(struct auth_ntlmssp_state **auth_ntlmssp_state)
        struct auth_ntlmssp_state *ans;
        struct auth_context *auth_context;
 
-       if ((enum server_types)lp_server_role() == ROLE_STANDALONE) {
+       if ((enum server_role)lp_server_role() == ROLE_STANDALONE) {
                is_standalone = true;
        } else {
                is_standalone = false;
index 8885ef2d14a095b5222df9b28dc4bb5173bfb322..827a9db018d677410be951db34cdade75de2ec7b 100644 (file)
@@ -27,6 +27,7 @@
 #define _SMB_H
 
 #include "libcli/smb/smb_common.h"
+#include "libds/common/roles.h"
 
 /* logged when starting the various Samba daemons */
 #define COPYRIGHT_STARTUP_MESSAGE      "Copyright Andrew Tridgell and the Samba Team 1992-2011"
@@ -1298,14 +1299,6 @@ enum protocol_types {
 /* security levels */
 enum security_types {SEC_SHARE,SEC_USER,SEC_SERVER,SEC_DOMAIN,SEC_ADS};
 
-/* server roles */
-enum server_types {
-       ROLE_STANDALONE,
-       ROLE_DOMAIN_MEMBER,
-       ROLE_DOMAIN_BDC,
-       ROLE_DOMAIN_PDC
-};
-
 /* printing types */
 enum printing_types {PRINT_BSD,PRINT_SYSV,PRINT_AIX,PRINT_HPUX,
                     PRINT_QNX,PRINT_PLP,PRINT_LPRNG,PRINT_SOFTQ,