diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-29 13:30:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-17 09:52:29 +0200 |
commit | 41a0e96724dc05752b1bdb86fc946c820be16632 (patch) | |
tree | 058bf0a6fdafc88ccf05f1311d9f688a2744afe3 /source3/libads/cldap.h | |
parent | 8c076862ad0b1b14bb6addef323c5678368051af (diff) | |
download | samba-41a0e96724dc05752b1bdb86fc946c820be16632.tar.gz samba-41a0e96724dc05752b1bdb86fc946c820be16632.tar.bz2 samba-41a0e96724dc05752b1bdb86fc946c820be16632.zip |
Add cldap_multi_netlogon_send/recv
Make ads_cldap_netlogon use it. It does not need the fancy multi stuff, but
excercising that code more often is better. And because we have to ask over the
network, the additional load should be neglectable.
Ported to master by Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libads/cldap.h')
-rw-r--r-- | source3/libads/cldap.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/libads/cldap.h b/source3/libads/cldap.h index 60e1c56038..9e42782052 100644 --- a/source3/libads/cldap.h +++ b/source3/libads/cldap.h @@ -26,6 +26,24 @@ #include "../libcli/netlogon/netlogon.h" /* The following definitions come from libads/cldap.c */ + +struct tevent_req *cldap_multi_netlogon_send( + TALLOC_CTX *mem_ctx, struct tevent_context *ev, + const struct tsocket_address * const *servers, + int num_servers, + const char *domain, const char *hostname, unsigned ntversion, + int min_servers); +NTSTATUS cldap_multi_netlogon_recv( + struct tevent_req *req, TALLOC_CTX *mem_ctx, + struct netlogon_samlogon_response ***responses); +NTSTATUS cldap_multi_netlogon( + TALLOC_CTX *mem_ctx, + const struct tsocket_address * const *servers, + int num_servers, + const char *domain, const char *hostname, unsigned ntversion, + int min_servers, struct timeval timeout, + struct netlogon_samlogon_response ***responses); + bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx, struct sockaddr_storage *ss, const char *realm, |