From c83e3d3cd298986f74986ae0daf0942c29387dee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 5 Oct 2007 17:45:49 +0000 Subject: [PATCH] * just use ldap if it's enabled by config. --- citadel/modules/vcard/serv_vcard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index 016de159c..0e8783ddf 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -358,7 +358,8 @@ void vcard_add_to_directory(long msgnum, void *data) { } #ifdef HAVE_LDAP - ctdl_vcard_to_ldap(msg, V2L_WRITE); + if (!IsEmptyStr(config.c_ldap_base_dn)) + ctdl_vcard_to_ldap(msg, V2L_WRITE); #endif CtdlFreeMessage(msg); -- 2.30.2