2 Unix SMB/CIFS implementation.
3 Copyright (C) Andrew Tridgell 2001
4 Copyright (C) Remus Koos 2001
5 Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
6 Copyright (C) Guenther Deschner 2005
7 Copyright (C) Gerald Carter 2006
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/>.
28 #if defined(HPUX) && !defined(_LBER_TYPES_H)
29 /* Define ber_tag_t and ber_int_t for using
30 * HP LDAP-UX Integration products' LDAP libraries.
33 typedef unsigned long ber_tag_t
;
34 typedef int ber_int_t
;
36 #endif /* defined(HPUX) && !defined(_LBER_TYPES_H) */
38 #define LBER_USE_DER 0x01
40 #endif /* HAVE_LBER_H */
45 #define LDAP_CONST const
47 #ifndef LDAP_OPT_SUCCESS
48 #define LDAP_OPT_SUCCESS 0
50 /* Solaris 8 and maybe other LDAP implementations spell this "..._INPROGRESS": */
51 #if defined(LDAP_SASL_BIND_INPROGRESS) && !defined(LDAP_SASL_BIND_IN_PROGRESS)
52 #define LDAP_SASL_BIND_IN_PROGRESS LDAP_SASL_BIND_INPROGRESS
54 /* Solaris 8 defines SSL_LDAP_PORT, not LDAPS_PORT and it only does so if
55 LDAP_SSL is defined - but SSL is not working. We just want the
56 port number! Let's just define LDAPS_PORT correct. */
57 #if !defined(LDAPS_PORT)
58 #define LDAPS_PORT 636
61 /* function declarations not included in proto.h */
62 LDAP
*ldap_open_with_timeout(const char *server
, int port
, unsigned int to
);
64 #endif /* HAVE_LDAP_H */
68 #define LDAPMessage void
70 #define LDAP_CONST const
71 #define LDAPControl void
73 struct ldapsam_privates
;
74 #endif /* HAVE_LDAP */
76 #ifndef LDAP_OPT_SUCCESS
77 #define LDAP_OPT_SUCCESS 0
80 #endif /* _SMB_LDAP_H */