summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-18 19:40:31 +0200
committerGünther Deschner <gd@samba.org>2010-05-31 11:32:37 +0200
commitfbb7814f91f85e95769a5e23506825167b44139f (patch)
treed790104b205df4fdb843008c812f0b116dc72350 /source3/libsmb
parentf9f8007361583c1d38be7e15eeae6b58a09614b3 (diff)
downloadsamba-fbb7814f91f85e95769a5e23506825167b44139f.tar.gz
samba-fbb7814f91f85e95769a5e23506825167b44139f.tar.bz2
samba-fbb7814f91f85e95769a5e23506825167b44139f.zip
s3: only use netlogon/nbt header when needed.
Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidgram.c1
-rw-r--r--source3/libsmb/clidgram.h16
-rw-r--r--source3/libsmb/dsgetdcname.c2
-rw-r--r--source3/libsmb/namequery.c1
4 files changed, 20 insertions, 0 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index 1b72e33303..f1f0bcb357 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "librpc/gen_ndr/messaging.h"
+#include "libsmb/clidgram.h"
/*
* cli_send_mailslot, send a mailslot for client code ...
diff --git a/source3/libsmb/clidgram.h b/source3/libsmb/clidgram.h
new file mode 100644
index 0000000000..ff98f3b967
--- /dev/null
+++ b/source3/libsmb/clidgram.h
@@ -0,0 +1,16 @@
+#include "../libcli/netlogon.h"
+
+/* The following definitions come from libsmb/clidgram.c */
+
+bool send_getdc_request(TALLOC_CTX *mem_ctx,
+ struct messaging_context *msg_ctx,
+ struct sockaddr_storage *dc_ss,
+ const char *domain_name,
+ const struct dom_sid *sid,
+ uint32_t nt_version);
+bool receive_getdc_response(TALLOC_CTX *mem_ctx,
+ struct sockaddr_storage *dc_ss,
+ const char *domain_name,
+ uint32_t *nt_version,
+ const char **dc_name,
+ struct netlogon_samlogon_response **reply);
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 6e322e90c9..6af2eeb696 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -23,6 +23,8 @@
#include "includes.h"
#include "libads/sitename_cache.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
+#include "libads/cldap.h"
+#include "libsmb/clidgram.h"
#define DSGETDCNAME_FMT "DSGETDCNAME/DOMAIN/%s"
/* 15 minutes */
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index a77f5e4b46..20ba3410d5 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "libads/sitename_cache.h"
+#include "../libcli/netlogon.h"
/* nmbd.c sets this to True. */
bool global_in_nmbd = False;