aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-02-08 05:50:12 +0800
committerChris Toshok <toshok@src.gnome.org>2001-02-08 05:50:12 +0800
commitb9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85 (patch)
treecb4f1d8b90c44604b6e1c96efb71dac4e1c2ecfb /addressbook/backend
parent66c11c25470bed6c0fe8c8e884b4fa76135337fb (diff)
downloadgsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.gz
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.zst
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.zip
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
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c2
1 files changed, 2 insertions, 0 deletions
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,11 +281,13 @@ 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) {
ldap_simple_bind_s(blpriv->ldap,