20121025 openfire vcard properties - plembo/onemoretech GitHub Wiki

title: OpenFire vCard Properties link: https://onemoretech.wordpress.com/2012/10/25/openfire-vcard-properties/ author: lembobro description: post_id: 3587 created: 2012/10/25 16:58:19 created_gmt: 2012/10/25 20:58:19 comment_status: closed post_name: openfire-vcard-properties status: publish post_type: post

OpenFire vCard Properties

The vCard mappings served up my the OpenFire instant messaging server are found in the ldap.vcard-mapping property. In the absence of an accepted standard, the developers came up with their own idiosyncratic schema for this. Details below. The following was tested with OpenFire 3.7.1 on a RHEL 6 server and Spark 2.6.3 client on Windows. Here is the raw CDATA stored in the ldap.vcard-mapping property (as shown in on the OpenFire Admin Console System Properties page): [code language="xml"] {sn}{givenname}{cn}{mail}{cn}image/jpeg{jpegPhoto}{homePostalAddress}{street}{l}{st}{postalCode}{c}{homePhone}{telephoneNumber}{mobile}{pager}{facsimileTelephoneNumber}

{title}{o}{ou}]]> [/code] Note that the above is formatted without any linefeeds or carriage returns. This is intentional. Linefeeds or carriage returns will cause these mappings to fail. Here is the same configuration formatted for human eyes: [code language="xml"] {sn} {givenname} {cn} {mail} {cn} image/jpeg {jpegPhoto} {homePostalAddress} {street} {l} {st} {postalCode} {c} {homePhone} {telephoneNumber} {mobile} {pager} {facsimileTelephoneNumber} {title} {o} {ou} ]]> [/code] The order in which elements of each field are implemented IS significant. For example, the element requires the order . Reversing that order will break it. Known working field mappings: Field Name, XML Element, LDAP Attribute [code language="xml"] Last Name, , sn First Name, , givenname E-mail, , mail Full Name, , cn Work Street, , street Work City, , l Work State, , st Work Postal Code, , postalcode Work Country, , c Work Phone, , telephonenumber Work Cell, , mobile Work Fax, , facsimiletelephonenumber Title, <TITLE/>, title Company, , o Department, , ou [/code]

Copyright 2004-2019 Phil Lembo

⚠️ **GitHub.com Fallback** ⚠️