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
26 #ifdef HAVE_LDAP_PVT_H
28 #endif /* HAVE_LDAP_PVT_H */
30 #ifdef HAVE_LDAP_INIT_FD
31 int ldap_init_fd(ber_socket_t fd
, int proto
, char *uri
, LDAP
**ldp
);
34 /* function declarations not included in proto.h */
35 LDAP
*ldap_open_with_timeout(const char *server
,
36 struct sockaddr_storage
*ss
,
37 int port
, unsigned int to
);
39 #ifndef LDAP_OPT_SUCCESS
40 #define LDAP_OPT_SUCCESS 0
42 /* Solaris 8 and maybe other LDAP implementations spell this "..._INPROGRESS": */
43 #if defined(LDAP_SASL_BIND_INPROGRESS) && !defined(LDAP_SASL_BIND_IN_PROGRESS)
44 #define LDAP_SASL_BIND_IN_PROGRESS LDAP_SASL_BIND_INPROGRESS
46 /* Solaris 8 defines SSL_LDAP_PORT, not LDAPS_PORT and it only does so if
47 LDAP_SSL is defined - but SSL is not working. We just want the
48 port number! Let's just define LDAPS_PORT correct. */
49 #if !defined(LDAPS_PORT)
50 #define LDAPS_PORT 636
53 #endif /* HAVE_LDAP_H */
57 #define LDAPMessage void
59 #define LDAP_CONST const
60 #define LDAPControl void
62 struct ldapsam_privates
;
63 #endif /* HAVE_LDAP */
65 #ifndef LDAP_OPT_SUCCESS
66 #define LDAP_OPT_SUCCESS 0
69 #endif /* _SMB_LDAP_H */