aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/pas/pas-backend-ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/pas/pas-backend-ldap.c')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index 845ef31e16..2f32661cca 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -207,6 +207,7 @@ pas_backend_ldap_build_all_cards_list(PASBackend *backend,
if (ldap) {
ldap->ld_sizelimit = LDAP_MAX_SEARCH_RESPONSES;
+ ldap->ld_deref = LDAP_DEREF_ALWAYS;
if ((ldap_error = ldap_search_s (ldap,
bl->priv->ldap_rootdn,
@@ -729,6 +730,7 @@ pas_backend_ldap_search (PASBackendLDAP *bl,
if (ldap) {
ldap->ld_sizelimit = LDAP_MAX_SEARCH_RESPONSES;
+ ldap->ld_deref = LDAP_DEREF_ALWAYS;
if ((view->search_msgid = ldap_search (ldap,
bl->priv->ldap_rootdn,
@@ -802,6 +804,19 @@ pas_backend_ldap_process_check_connection (PASBackend *backend,
pas_book_report_connection (book, bl->priv->connected);
}
+static gboolean
+pas_backend_ldap_can_write (PASBook *book)
+{
+ return FALSE; /* XXX */
+}
+
+static gboolean
+pas_backend_ldap_can_write_card (PASBook *book,
+ const char *id)
+{
+ return FALSE; /* XXX */
+}
+
static void
pas_backend_ldap_process_client_requests (PASBook *book)
{
@@ -927,7 +942,9 @@ pas_backend_ldap_add_client (PASBackend *backend,
book = pas_book_new (
backend, listener,
- pas_backend_ldap_get_vcard);
+ pas_backend_ldap_get_vcard,
+ pas_backend_ldap_can_write,
+ pas_backend_ldap_can_write_card);
if (!book) {
if (!bl->priv->clients)