aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-05-12 02:53:11 +0800
committerChris Toshok <toshok@src.gnome.org>2001-05-12 02:53:11 +0800
commit34b0dc654443bdbecb54d83c05d0aea276bd34c4 (patch)
treedb74f48f391796ec8f9c4b22ba4af4927a127ed9 /addressbook/backend/pas
parent2cdd37023cf53fa60302e7ffe26d912d891d62c4 (diff)
downloadgsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.gz
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.bz2
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.lz
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.xz
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.zst
gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.zip
only check schema support if we've connected.
2001-05-11 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only check schema support if we've connected. svn path=/trunk/; revision=9763
Diffstat (limited to 'addressbook/backend/pas')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c9
1 files changed, 5 insertions, 4 deletions
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