* just use ldap if it's enabled by config.
authorWilfried Göesgens <willi@citadel.org>
Fri, 5 Oct 2007 17:45:49 +0000 (17:45 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 5 Oct 2007 17:45:49 +0000 (17:45 +0000)
citadel/modules/vcard/serv_vcard.c

index 016de159c9694e0818f3f5a38fcf24cac49224f5..0e8783ddf7cfe3d4903fadeb331c0cb0f953b9da 100644 (file)
@@ -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);