6 #if defined(HPUX) && !defined(_LBER_TYPES_H)
7 /* Define ber_tag_t and ber_int_t for using
8 * HP LDAP-UX Integration products' LDAP libraries.
11 typedef unsigned long ber_tag_t;
12 typedef int ber_int_t;
14 #endif /* defined(HPUX) && !defined(_LBER_TYPES_H) */
16 #define LBER_USE_DER 0x01
18 #endif /* HAVE_LBER_H */
23 #define LDAP_CONST const
25 #ifndef LDAP_OPT_SUCCESS
26 #define LDAP_OPT_SUCCESS 0
28 /* Solaris 8 and maybe other LDAP implementations spell this "..._INPROGRESS": */
29 #if defined(LDAP_SASL_BIND_INPROGRESS) && !defined(LDAP_SASL_BIND_IN_PROGRESS)
30 #define LDAP_SASL_BIND_IN_PROGRESS LDAP_SASL_BIND_INPROGRESS
32 /* Solaris 8 defines SSL_LDAP_PORT, not LDAPS_PORT and it only does so if
33 LDAP_SSL is defined - but SSL is not working. We just want the
34 port number! Let's just define LDAPS_PORT correct. */
35 #if !defined(LDAPS_PORT)
36 #define LDAPS_PORT 636
39 /* function declarations not included in proto.h */
40 LDAP *ldap_open_with_timeout(const char *server,
41 struct sockaddr_storage *ss,
42 int port, unsigned int to);
44 #ifdef HAVE_LDAP_PVT_H
47 int ldap_init_fd(ber_socket_t fd, int proto, char *uri, LDAP **ldp);
49 #endif /* HAVE_LDAP_H */
53 #define LDAPMessage void
55 #define LDAP_CONST const
56 #define LDAPControl void
58 struct ldapsam_privates;
59 #endif /* HAVE_LDAP */
61 #ifndef LDAP_OPT_SUCCESS
62 #define LDAP_OPT_SUCCESS 0
65 #endif /* _SMB_LDAP_H */