From 34b0dc654443bdbecb54d83c05d0aea276bd34c4 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 11 May 2001 18:53:11 +0000 Subject: only check schema support if we've connected. 2001-05-11 Chris Toshok * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only check schema support if we've connected. svn path=/trunk/; revision=9763 --- addressbook/ChangeLog | 5 +++++ addressbook/backend/pas/pas-backend-ldap.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3a70eb7862..ba1802dad5 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-05-11 Chris Toshok + + * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only + check schema support if we've connected. + 2001-05-11 Chris Toshok * contact-editor/e-contact-editor.c (enable_writable_fields): diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c index c8cd900f87..cab9f96f54 100644 --- a/addressbook/backend/pas/pas-backend-ldap.c +++ b/addressbook/backend/pas/pas-backend-ldap.c @@ -402,6 +402,11 @@ pas_backend_ldap_connect (PASBackendLDAP *bl) ldap_simple_bind_s(blpriv->ldap, NULL /*binddn*/, NULL /*passwd*/); blpriv->connected = TRUE; + + /* check to see if evolutionPerson is supported, if we can (me + might not be able to if we can't authenticate. if we + can't, try again in auth_user.) */ + check_schema_support (bl); } else { g_warning ("pas_backend_ldap_connect failed for " @@ -412,10 +417,6 @@ pas_backend_ldap_connect (PASBackendLDAP *bl) blpriv->connected = FALSE; } - /* check to see if evolutionPerson is supported, if we can (me - might not be able to if we can't authenticate. if we - can't, try again in auth_user.) */ - check_schema_support (bl); } static void -- cgit v1.2.3