From: Dave West Date: Sat, 27 Oct 2007 15:35:55 +0000 (+0000) Subject: Added support for mobile phone number and fax number to the LDAP module. X-Git-Tag: v7.86~2899 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=ef5bf9b5d8b6026d945b17e8c68f7fc0e415bc25;p=citadel.git Added support for mobile phone number and fax number to the LDAP module. --- 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);