aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-01-24 05:15:33 +0800
committerChris Toshok <toshok@src.gnome.org>2003-01-24 05:15:33 +0800
commit1fbf46701893fe9e6756838b7b288318caa8b3fd (patch)
treeb4310d05ff18e7191efdbff1846c33d87003f425
parentb4e888b7b5892ea98869c53b9de96095b0dac945 (diff)
downloadgsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar.gz
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar.bz2
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar.lz
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar.xz
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.tar.zst
gsoc2013-evolution-1fbf46701893fe9e6756838b7b288318caa8b3fd.zip
fix for bug 34883 broke ssl transactions (at least those where we were
2003-01-23 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): fix for bug 34883 broke ssl transactions (at least those where we were connecting to port 636). Move it to after the SSL stanza. svn path=/trunk/; revision=19598
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c11
2 files changed, 17 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 79d8108b9c..7eb77f55b6 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-23 Chris Toshok <toshok@ximian.com>
+
+ * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): fix
+ for bug 34883 broke ssl transactions (at least those where we were
+ connecting to port 636). Move it to after the SSL stanza.
+
2003-01-23 Ettore Perazzoli <ettore@ximian.com>
* gui/component/select-names/Makefile.am (componentdir): Remove
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 09a6d258de..93bbd6cbd4 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -691,6 +691,17 @@ pas_backend_ldap_connect (PASBackendLDAP *bl)
}
}
+ /* bind anonymously initially, we'll actually
+ authenticate the user properly later (in
+ authenticate_user) if they've selected
+ authentication */
+ ldap_error = ldap_simple_bind_s (blpriv->ldap, NULL, NULL);
+ if (ldap_error == LDAP_SERVER_DOWN) {
+ /* we only want this to be fatal if the server is down. */
+ g_warning ("failed to bind anonymously while connecting (ldap_error 0x%02x)", ldap_error);
+ return GNOME_Evolution_Addressbook_BookListener_RepositoryOffline;
+ }
+
ldap_error = query_ldap_root_dse (bl);
/* query_ldap_root_dse will cause the actual
connect(), so any tcpip problems will show up