only set the DEBUG_LEVEL if we're OPENLDAP2.
2001-02-07 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only set the DEBUG_LEVEL if we're OPENLDAP2. svn path=/trunk/; revision=8062
This commit is contained in:
committed by
Chris Toshok
parent
66c11c2547
commit
b9e5bae616
@ -1,3 +1,8 @@
|
||||
2001-02-07 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only
|
||||
set the DEBUG_LEVEL if we're OPENLDAP2.
|
||||
|
||||
2001-02-06 Chris Toshok <toshok@ximian.com>
|
||||
|
||||
* backend/pas/pas-backend-ldap.c (email_compare): return TRUE if
|
||||
|
||||
@ -281,10 +281,12 @@ pas_backend_ldap_connect (PASBackendLDAP *bl)
|
||||
|
||||
blpriv->ldap = ldap_open (blpriv->ldap_host, blpriv->ldap_port);
|
||||
#ifdef DEBUG
|
||||
#ifdef OPENLDAP2
|
||||
{
|
||||
int debug_level = ~0;
|
||||
ldap_set_option (blpriv->ldap, LDAP_OPT_DEBUG_LEVEL, &debug_level);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (NULL != blpriv->ldap) {
|
||||
|
||||
Reference in New Issue
Block a user