lib/param: use the correct path names again
[Samba/gebeck_regimport.git] / source3 / libads / cldap.h
blob9e42782052a560a0cd1e2703196769711c3a7822
1 /*
2 Samba Unix/Linux SMB client library
3 net ads cldap functions
4 Copyright (C) 2001 Andrew Tridgell (tridge@samba.org)
5 Copyright (C) 2003 Jim McDonough (jmcd@us.ibm.com)
6 Copyright (C) 2008 Guenther Deschner (gd@samba.org)
7 Copyright (C) 2009 Stefan Metzmacher (metze@samba.org)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _LIBADS_CLDAP_H_
24 #define _LIBADS_CLDAP_H_
26 #include "../libcli/netlogon/netlogon.h"
28 /* The following definitions come from libads/cldap.c */
30 struct tevent_req *cldap_multi_netlogon_send(
31 TALLOC_CTX *mem_ctx, struct tevent_context *ev,
32 const struct tsocket_address * const *servers,
33 int num_servers,
34 const char *domain, const char *hostname, unsigned ntversion,
35 int min_servers);
36 NTSTATUS cldap_multi_netlogon_recv(
37 struct tevent_req *req, TALLOC_CTX *mem_ctx,
38 struct netlogon_samlogon_response ***responses);
39 NTSTATUS cldap_multi_netlogon(
40 TALLOC_CTX *mem_ctx,
41 const struct tsocket_address * const *servers,
42 int num_servers,
43 const char *domain, const char *hostname, unsigned ntversion,
44 int min_servers, struct timeval timeout,
45 struct netlogon_samlogon_response ***responses);
47 bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx,
48 struct sockaddr_storage *ss,
49 const char *realm,
50 uint32_t nt_version,
51 struct netlogon_samlogon_response **reply);
52 bool ads_cldap_netlogon_5(TALLOC_CTX *mem_ctx,
53 struct sockaddr_storage *ss,
54 const char *realm,
55 struct NETLOGON_SAM_LOGON_RESPONSE_EX *reply5);
57 #endif /* _LIBADS_CLDAP_H_ */