diff options
author | Chris Toshok <toshok@ximian.com> | 2001-05-12 02:53:11 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-05-12 02:53:11 +0800 |
commit | 34b0dc654443bdbecb54d83c05d0aea276bd34c4 (patch) | |
tree | db74f48f391796ec8f9c4b22ba4af4927a127ed9 /addressbook/backend/pas | |
parent | 2cdd37023cf53fa60302e7ffe26d912d891d62c4 (diff) | |
download | gsoc2013-evolution-34b0dc654443bdbecb54d83c05d0aea276bd34c4.tar.gz 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.c | 9 |
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 |