From b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 7 Feb 2001 21:50:12 +0000 Subject: only set the DEBUG_LEVEL if we're OPENLDAP2. 2001-02-07 Chris Toshok * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only set the DEBUG_LEVEL if we're OPENLDAP2. svn path=/trunk/; revision=8062 --- addressbook/backend/pas/pas-backend-ldap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/backend') diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c index e2aabf7cb0..417567826e 100644 --- a/addressbook/backend/pas/pas-backend-ldap.c +++ b/addressbook/backend/pas/pas-backend-ldap.c @@ -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) { -- cgit v1.2.3