7c70062005-04-07Martin Stjernholm // -*- pike -*-
aa370a1999-04-24Johan Schön  // --------------- Standards.ASN1.Types private add-on --------------------
ea8ed12014-06-21Martin Nilsson #define ASN1_APPLICATION_SEQUENCE(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.Sequence, 1, T, A) #define ASN1_APPLICATION_OCTET_STRING(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.OctetString, 1, T, A) #define ASN1_CONTEXT_SEQUENCE(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.Sequence, 2, T, A) #define ASN1_CONTEXT_BOOLEAN(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.Boolean, 2, T, A) #define ASN1_CONTEXT_INTEGER(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.Integer, 2, T, A) #define ASN1_CONTEXT_OCTET_STRING(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.OctetString, 2, T, A) #define ASN1_CONTEXT_SET(T,A) .ldap_privates.asn1_factory(Standards.ASN1.Types.Set, 2, T, A)
aa370a1999-04-24Johan Schön  // ------------- end of ASN.1 API hack ----------------------------- #define LDAP_DEFAULT_PORT 389
0668612001-09-14Honza Petrous #define LDAPS_DEFAULT_PORT 636
bac6332000-07-25Honza Petrous #define LDAP_DEFAULT_HOST "127.0.0.1" #define LDAP_DEFAULT_URL "ldap://"+LDAP_DEFAULT_HOST+":"+LDAP_DEFAULT_PORT+"/"
fc02d12000-07-20Honza Petrous #define LDAP_DEFAULT_VERSION 3
bf334d2001-08-15Honza Petrous #define V3_REFERRALS 1
fc02d12000-07-20Honza Petrous 
8648672004-06-18Henrik Grubbström (Grubba) #define ENABLE_PAGED_SEARCH
14082e2004-05-25Henrik Grubbström (Grubba) 
0668612001-09-14Honza Petrous #ifdef DEBUG_PIKE_PROTOCOL_LDAP
d2c75b2014-06-21Martin Nilsson #define DWRITE(X...) werror("Protocols.LDAP: " X) #define DWRITE_HI(X...) werror("Protocols.LDAP: " X)
0668612001-09-14Honza Petrous #else
c7bdf82005-04-06Martin Stjernholm #define DWRITE(X...) #define DWRITE_HI(X...)
0668612001-09-14Honza Petrous #endif
3baf5c2005-03-10Martin Stjernholm 
cd7f232014-03-01Martin Nilsson #ifdef LDAP_DEBUG
3baf5c2005-03-10Martin Stjernholm #define DO_IF_DEBUG(X...) X #else #define DO_IF_DEBUG(X...) #endif
aa370a1999-04-24Johan Schön // --- Enable run-time error --- //#define THROW(X) #define THROW(X) throw(X)
5edd342006-09-19Martin Stjernholm #define ERROR(X...) predef::error (X)
b080de2001-06-21Honza Petrous // --- Enable profiling ---
3549b02014-06-25Martin Nilsson //#define DWRITE_PROF(X,Y) werror("Protocols.LDAP:Profile: "+X,Y)
b080de2001-06-21Honza Petrous #define DWRITE_PROF(X,Y)