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:
Chris Toshok
2001-02-07 21:50:12 +00:00
committed by Chris Toshok
parent 66c11c2547
commit b9e5bae616
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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) {