Active Directory ADSI attributes issue

Hi all! I don’t know if this is a Spark or OpenFire issue but since i get it in Spark i’m writing here. There are no “Company” and “Web page” attributes data in user profile from corresponding ADSI user attributes “company” and “wWWHomePage”.
Spark 3.0.1, OpenFire 4.7.4, AD level 2012 R2
2

In Openfire, you can map AD fields to VCard fields, under profile settings. Do those VCard fields get mapped?

If not, please allow me to page @speedy, our resident expert, project lead and Mage Extraordinaire for anything Active Directory. :slight_smile:

OK. I’m in OpenFire “Profile Settings - Directory Server”, “Step 2 of 3: User Mapping”. There are no “Company” or “Web page” profile fields.

ldap.vcard-mapping
<![CDATA[
<vCard xmlns="vcard-temp">
  <N>
    <GIVEN>{cn}</GIVEN>
  </N> 
  <EMAIL>
    <INTERNET/> 
    <USERID>{mail}</USERID>
  </EMAIL> 
  <FN>{displayName}</FN> 
  <ADR>
    <HOME/> 
    <STREET>{homePostalAddress}</STREET> 
    <PCODE>{homeZip}</PCODE> 
    <CTRY>{co}</CTRY>
  </ADR> 
  <ADR>
    <WORK/> 
    <STREET>{streetAddress}</STREET> 
    <LOCALITY>{l}</LOCALITY> 
    <REGION>{st}</REGION> 
    <PCODE>{postalCode}</PCODE> 
    <CTRY>{co}</CTRY>
  </ADR> 
  <TEL>
    <HOME/> 
    <VOICE/> 
    <NUMBER>{homePhone}</NUMBER>
  </TEL> 
  <TEL>
    <HOME/> 
    <CELL/> 
    <NUMBER>{mobile}</NUMBER>
  </TEL> 
  <TEL>
    <WORK/> 
    <VOICE/> 
    <NUMBER>{telephoneNumber}</NUMBER>
  </TEL> 
  <TEL>
    <WORK/> 
    <CELL/> 
    <NUMBER>{mobile}</NUMBER>
  </TEL> 
  <TEL>
    <WORK/> 
    <FAX/> 
    <NUMBER>{facsimileTelephoneNumber}</NUMBER>
  </TEL> 
  <TEL>
    <WORK/> 
    <PAGER/> 
    <NUMBER>{pager}</NUMBER>
  </TEL> 
  <TITLE>{title}</TITLE> 
  <ORG>
    <ORGUNIT>{department}</ORGUNIT>
  </ORG>
</vCard>]]>

Ah, that’s missing something.

Directly under the vCard element, there can be a URL element for the website:

<vCard xmlns="vcard-temp">
    <URL>https://example.org</URL>
</vCard>

The ORG element should look like this, to include the company name:

<ORG>
  <ORGNAME>Name of the Company</ORGNAME>
  <ORGUNIT>Name of the Department</ORGUNIT>
</ORG>

The LDAP integration of Openfire does not seem to populate these fields. I’ve raised a ticket for this bug: [OF-2562] - Ignite Realtime Jira

1 Like

Thank you so much. Will try it later. ALso would it be too impudent of me to ask you to add ADSI attribute “physicalDeliveryOfficeName” to the vcard properties somehow?

setting the bar a little high!