summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/auth/auth_ntlmssp.c1
-rw-r--r--source3/auth/server_info.c1
-rw-r--r--source3/auth/token_util.c2
-rw-r--r--source3/include/proto.h6
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/lib/netapi/getdc.c2
-rw-r--r--source3/lib/netapi/joindomain.c2
-rw-r--r--source3/lib/netapi/netlogon.c2
-rw-r--r--source3/lib/util_sid.c1
-rw-r--r--source3/modules/vfs_expand_msdfs.c1
-rw-r--r--source3/modules/vfs_full_audit.c1
-rw-r--r--source3/modules/vfs_recycle.c1
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c1
-rw-r--r--source3/modules/vfs_xattr_tdb.c1
-rw-r--r--source3/printing/nt_printing.c1
-rw-r--r--source3/printing/printing.c1
-rw-r--r--source3/rpc_server/srv_lsa_nt.c1
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c1
-rw-r--r--source3/smbd/password.c1
-rw-r--r--source3/smbd/service.c1
-rw-r--r--source3/smbd/uid.c1
21 files changed, 26 insertions, 4 deletions
diff --git a/source3/auth/auth_ntlmssp.c b/source3/auth/auth_ntlmssp.c
index 0cccab51fd..c212bb39d4 100644
--- a/source3/auth/auth_ntlmssp.c
+++ b/source3/auth/auth_ntlmssp.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "../libcli/auth/ntlmssp.h"
#include "ntlmssp_wrap.h"
+#include "../librpc/gen_ndr/netlogon.h"
NTSTATUS auth_ntlmssp_steal_server_info(TALLOC_CTX *mem_ctx,
struct auth_ntlmssp_state *auth_ntlmssp_state,
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c
index 782dc410e0..e457bd4ae7 100644
--- a/source3/auth/server_info.c
+++ b/source3/auth/server_info.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "../lib/crypto/arcfour.h"
+#include "../librpc/gen_ndr/netlogon.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 7634e76f1c..21d9af1f54 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -27,6 +27,8 @@
#include "includes.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/netlogon.h"
+
/****************************************************************************
Check for a SID in an NT_USER_TOKEN
****************************************************************************/
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 32340b3d66..7e56f7db22 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -180,6 +180,10 @@ NTSTATUS auth_winbind_init(void);
/* The following definitions come from auth/server_info.c */
+struct netr_SamInfo2;
+struct netr_SamInfo3;
+struct netr_SamInfo6;
+
struct auth_serversupplied_info *make_server_info(TALLOC_CTX *mem_ctx);
NTSTATUS serverinfo_to_SamInfo2(struct auth_serversupplied_info *server_info,
uint8_t *pipe_session_key,
@@ -2728,6 +2732,8 @@ NTSTATUS dcerpc_pull_auth_trailer(struct ncacn_packet *pkt,
/* The following definitions come from libsmb/dsgetdcname.c */
+struct netr_DsRGetDCNameInfo;
+
void debug_dsdcinfo_flags(int lvl, uint32_t flags);
NTSTATUS dsgetdcname(TALLOC_CTX *mem_ctx,
struct messaging_context *msg_ctx,
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 2eb13d423e..d4e37fe85d 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -178,7 +178,6 @@ typedef union unid_t {
#include "librpc/gen_ndr/idmap.h"
#include "librpc/gen_ndr/epmapper.h"
-#include "librpc/gen_ndr/netlogon.h"
#include "librpc/gen_ndr/dcerpc.h"
struct lsa_dom_info {
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index ee17672215..787b258db9 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -19,11 +19,11 @@
#include "includes.h"
+#include "../librpc/gen_ndr/cli_netlogon.h"
#include "librpc/gen_ndr/libnetapi.h"
#include "lib/netapi/netapi.h"
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
-#include "../librpc/gen_ndr/cli_netlogon.h"
/********************************************************************
********************************************************************/
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index 13a06c7136..89a7c93d5e 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -20,12 +20,12 @@
#include "includes.h"
#include "ads.h"
#include "librpc/gen_ndr/libnetapi.h"
+#include "libcli/auth/libcli_auth.h"
#include "lib/netapi/netapi.h"
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
#include "librpc/gen_ndr/libnet_join.h"
#include "libnet/libnet_join.h"
-#include "libcli/auth/libcli_auth.h"
#include "../librpc/gen_ndr/cli_wkssvc.h"
#include "secrets.h"
diff --git a/source3/lib/netapi/netlogon.c b/source3/lib/netapi/netlogon.c
index 54b97090cd..d58b7ccf67 100644
--- a/source3/lib/netapi/netlogon.c
+++ b/source3/lib/netapi/netlogon.c
@@ -19,11 +19,11 @@
#include "includes.h"
+#include "../librpc/gen_ndr/cli_netlogon.h"
#include "librpc/gen_ndr/libnetapi.h"
#include "lib/netapi/netapi.h"
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
-#include "../librpc/gen_ndr/cli_netlogon.h"
static WERROR construct_data(enum netr_LogonControlCode function_code,
const uint8_t *data_in,
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 74b38de2a4..31a4c06c24 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/ndr_security.h"
+#include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/dom_sid.h"
/*
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c
index d7ae3976bf..3d5ea9630c 100644
--- a/source3/modules/vfs_expand_msdfs.c
+++ b/source3/modules/vfs_expand_msdfs.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 9c665c81a0..23ca1496bf 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -58,6 +58,7 @@
#include "includes.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
static int vfs_full_audit_debug_level = DBGC_VFS;
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 3cd1f9dc80..c6f2836763 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -23,6 +23,7 @@
*/
#include "includes.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
#define ALLOC_CHECK(ptr, label) do { if ((ptr) == NULL) { DEBUG(0, ("recycle.bin: out of memory!\n")); errno = ENOMEM; goto label; } } while(0)
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index 57d483fa46..3cafdc7d37 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -24,6 +24,7 @@
#include "vfs_smb_traffic_analyzer.h"
#include "../libcli/security/dom_sid.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
/* abstraction for the send_over_network function */
enum sock_type {INTERNET_SOCKET = 0, UNIX_DOMAIN_SOCKET};
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index b11e7eea28..28b21b6bf6 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/modules/vfs_xattr_tdb.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "librpc/gen_ndr/xattr.h"
#include "librpc/gen_ndr/ndr_xattr.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 9ead42df5b..ae44d5760f 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -31,6 +31,7 @@
#include "rpc_server/srv_spoolss_util.h"
#include "nt_printing.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/netlogon.h"
/* Map generic permissions to printer object specific permissions */
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index a2737105c4..0412d755a9 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -24,6 +24,7 @@
#include "librpc/gen_ndr/messaging.h"
#include "../librpc/gen_ndr/ndr_spoolss.h"
#include "nt_printing.h"
+#include "../librpc/gen_ndr/netlogon.h"
extern struct current_user current_user;
extern userdom_struct current_user_info;
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 68fc2b18f3..1a0ddb1892 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -31,6 +31,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/srv_lsa.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/netlogon.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 7ada5fdb9a..d33801e129 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -39,6 +39,7 @@
#include "registry/reg_objects.h"
#include "include/printing.h"
#include "secrets.h"
+#include "../librpc/gen_ndr/netlogon.h"
/* macros stolen from s4 spoolss server */
#define SPOOLSS_BUFFER_UNION(fn,info,level) \
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 996417b51e..f0989e6ac7 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "../librpc/gen_ndr/netlogon.h"
/* Fix up prototypes for OSX 10.4, where they're missing */
#ifndef HAVE_SETNETGRENT_PROTOTYPE
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index ddd5ae2449..9a345476dc 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "../librpc/gen_ndr/netlogon.h"
extern userdom_struct current_user_info;
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index aecce41021..c7c216b66f 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "../librpc/gen_ndr/netlogon.h"
/* what user is current? */
extern struct current_user current_user;