aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 2aa8a884d4..cc5a36f7db 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -82,6 +82,8 @@ struct _PASBackendLDAPPrivate {
gboolean evolutionPersonSupported;
gboolean evolutionPersonChecked;
+ gboolean writable;
+
/* whether or not there's a request in process on our LDAP* */
LDAPOp *current_op;
GList *pending_ops;
@@ -2037,8 +2039,8 @@ pas_backend_ldap_process_authenticate_user (PASBackend *backend,
pas_book_respond_authenticate_user (book,
ldap_error_to_response (ldap_error));
- if (ldap_error == LDAP_SUCCESS)
- pas_book_report_writable (book, TRUE);
+ bl->priv->writable = (ldap_error == LDAP_SUCCESS);
+ pas_book_report_writable (book, bl->priv->writable);
if (!bl->priv->evolutionPersonChecked)
check_schema_support (bl);
@@ -2238,6 +2240,8 @@ pas_backend_ldap_add_client (PASBackend *backend,
book, GNOME_Evolution_Addressbook_BookListener_Success);
}
+ pas_book_report_writable (book, bl->priv->writable);
+
return TRUE;
}