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
, int port
, unsigned int to
);
42 #endif /* HAVE_LDAP_H */
46 #define LDAPMessage void
48 #define LDAP_CONST const
49 #define LDAPControl void
51 struct ldapsam_privates
;
52 #endif /* HAVE_LDAP */
54 #ifndef LDAP_OPT_SUCCESS
55 #define LDAP_OPT_SUCCESS 0
58 #endif /* _SMB_LDAP_H */