From ef5bf9b5d8b6026d945b17e8c68f7fc0e415bc25 Mon Sep 17 00:00:00 2001 From: Dave West Date: Sat, 27 Oct 2007 15:35:55 +0000 Subject: [PATCH] Added support for mobile phone number and fax number to the LDAP module. --- citadel/modules/vcard/serv_vcard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/citadel/modules/vcard/serv_vcard.c b/citadel/modules/vcard/serv_vcard.c index 9bff42a41..8925228e6 100644 --- a/citadel/modules/vcard/serv_vcard.c +++ b/citadel/modules/vcard/serv_vcard.c @@ -252,6 +252,12 @@ void ctdl_vcard_to_directory(struct CtdlMessage *msg, int op) { if (!strcasecmp(v->prop[i].name, "tel;home")) (void) CtdlDoDirectoryServiceFunc("homePhone", v->prop[i].value, &objectlist, "ldap", DIRECTORY_ATTRIB_ADD); else + if (!strcasecmp(v->prop[i].name, "tel;fax")) + (void) CtdlDoDirectoryServiceFunc("facsimileTelephoneNumber", v->prop[i].value, &objectlist, "ldap", DIRECTORY_ATTRIB_ADD); + else + if (!strcasecmp(v->prop[i].name, "tel;cell")) + (void) CtdlDoDirectoryServiceFunc("mobile", v->prop[i].value, &objectlist, "ldap", DIRECTORY_ATTRIB_ADD); + else if ( (!strcasecmp(v->prop[i].name, "tel")) ||(!strncasecmp(v->prop[i].name, "tel;", 4)) ) { (void) CtdlDoDirectoryServiceFunc("telephoneNumber", v->prop[i].value, &objectlist, "ldap", DIRECTORY_ATTRIB_ADD); -- 2.39.2