aboutsummaryrefslogtreecommitdiffstats
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
parent66c11c25470bed6c0fe8c8e884b4fa76135337fb (diff)
downloadgsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.gz
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.bz2
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.lz
gsoc2013-evolution-b9e5bae616d4e1ac1e8fd10e565c4e12cd9a2e85.tar.xz
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
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 870ba3ca63..520ff7a018 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -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
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,