diff options
author | Günther Deschner <gd@samba.org> | 2010-05-18 19:40:31 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-31 11:32:37 +0200 |
commit | fbb7814f91f85e95769a5e23506825167b44139f (patch) | |
tree | d790104b205df4fdb843008c812f0b116dc72350 /source3/libads | |
parent | f9f8007361583c1d38be7e15eeae6b58a09614b3 (diff) | |
download | samba-fbb7814f91f85e95769a5e23506825167b44139f.tar.gz samba-fbb7814f91f85e95769a5e23506825167b44139f.tar.bz2 samba-fbb7814f91f85e95769a5e23506825167b44139f.zip |
s3: only use netlogon/nbt header when needed.
Guenther
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/cldap.c | 1 | ||||
-rw-r--r-- | source3/libads/cldap.h | 12 | ||||
-rw-r--r-- | source3/libads/ldap.c | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c index db5f664d94..5d2e900c05 100644 --- a/source3/libads/cldap.c +++ b/source3/libads/cldap.c @@ -23,6 +23,7 @@ #include "includes.h" #include "../libcli/cldap/cldap.h" #include "../lib/tsocket/tsocket.h" +#include "libads/cldap.h" /******************************************************************* do a cldap netlogon query. Always 389/udp diff --git a/source3/libads/cldap.h b/source3/libads/cldap.h new file mode 100644 index 0000000000..afe4b35b5d --- /dev/null +++ b/source3/libads/cldap.h @@ -0,0 +1,12 @@ +#include "../libcli/netlogon.h" + +/* The following definitions come from libads/cldap.c */ +bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx, + const char *server, + const char *realm, + uint32_t nt_version, + struct netlogon_samlogon_response **reply); +bool ads_cldap_netlogon_5(TALLOC_CTX *mem_ctx, + const char *server, + const char *realm, + struct NETLOGON_SAM_LOGON_RESPONSE_EX *reply5); diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 8d4b86c8b2..98da8ff484 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -23,6 +23,7 @@ #include "includes.h" #include "libads/sitename_cache.h" +#include "libads/cldap.h" #ifdef HAVE_LDAP |