This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
28 Replies Last post: Jul 7, 2008 2:03 PM by Paddy  
Graeme Wilson Bronze 10 posts since
Feb 8, 2008
Currently Being Moderated

Feb 12, 2008 5:05 AM

AD displayName not showing in Roster

 

We're using Openfire 3.4.5 and have configured it to link to our Active Directory (Windows Server 2003).  This works well and was really easy to set up but I'm having difficulty configuring Openfire to show the users' displayName in their roster rather than their account name.  For historical reasons our account names are 8 characters and generated by an algorithm.  If you don't know the algorithm it's difficult to tell who someone is from their account name alone.  Users are finding this quite frustrating and it's hindering take-up of the service.  I've seen a number of other posts relating to this but have not seen a definitive answer - how can I get Spark to show the displayName in the users' rosters?

 

 

I have attached our openfire.xml but with security settings removed.  We have also tried a number of other clients, Pandion, Pidgin etc. and all behave in the same way as Spark.  I have also noticed that where we 'share' a domain Group the user's displayName IS shown in the roster, so we're only having the display name issue where individual users have searched AD and added contacts themselves.  However, we don't want to have to administer Openfire any more than is necessary so sharing all or some of our groups would not be a preferred solution.

 

 

Thanks in advance!

 

 

Attachments:
sparki Bronze 5 posts since
Feb 11, 2008
Currently Being Moderated
Feb 12, 2008 5:40 AM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

 

Hi,

 

 

we have the same setup

 

 

try

 

 

<vCard xmlns="vcard-temp">

  <FN></FN>

  .....

 

 

in your openfire.xml and restart

 

 

it seems that the clients use the first parameter as the displayname.

 

 

 

 

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 12, 2008 7:32 AM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

 

This is the vCard mapping that works with Spark and AD.  It Fills in the name fields correctly.

 

 

<vcard-mapping><![CDATA[

<vCard xmlns="vcard-temp">

  <N>

    <GIVEN></GIVEN>

  </N>

  <EMAIL>

    <INTERNET/>

    <USERID></USERID>

  </EMAIL>

  <FN></FN>   <NICKNAME></NICKNAME>

  <ADR>

    <HOME/>

    <STREET></STREET>

    <PCODE></PCODE>

    <CTRY></CTRY>   </ADR>   <ADR>     <WORK/>     <STREET></STREET>     <LOCALITY></LOCALITY>     <REGION></REGION>     <PCODE></PCODE>     <CTRY></CTRY>

  </ADR>

  <TEL>

    <HOME/>

    <VOICE/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <HOME/>

    <CELL/>

    <NUMBER></NUMBER>   </TEL>   <TEL>     <WORK/>     <VOICE/>     <NUMBER></NUMBER>   </TEL>   <TEL>     <WORK/>     <CELL/>     <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <FAX/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <PAGER/>

    <NUMBER></NUMBER>

  </TEL>

  <TITLE></TITLE>

  <ORG>

    <ORGUNIT></ORGUNIT>

  </ORG>

</vCard>]]></vcard-mapping>

 

 

sparki Bronze 5 posts since
Feb 11, 2008
Currently Being Moderated
Feb 14, 2008 1:21 AM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

 

with the setup from mtstravel, which seems to be the default AD setup, we have the problem that all Clients (we use spark, pidgin and miranda) use GIVENNAME as displayname and we have many persons with Michael as givenname. And there is no FAMILYNAME

 

 

So I have changed my setup and all fields are now filled in fine. My setup is:

 

 

<vCard xmlns="vcard-temp">

  <FN></FN>

  <N>

    <GIVEN></GIVEN>

    <FAMILY></FAMILY>

  </N>

  <EMAIL>

    <INTERNET/>

    <USERID></USERID>

  </EMAIL>

  <NICKNAME></NICKNAME>

  <ADR>

    <HOME/>

    <STREET></STREET>

    <PCODE></PCODE>

    <CTRY></CTRY>   </ADR>   <ADR>     <WORK/>     <STREET></STREET>     <LOCALITY></LOCALITY>     <REGION></REGION>     <PCODE></PCODE>     <CTRY></CTRY>

  </ADR>

  <TEL>

    <HOME/>

    <VOICE/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <HOME/>

    <CELL/>

    <NUMBER></NUMBER>   </TEL>   <TEL>     <WORK/>     <VOICE/>     <NUMBER></NUMBER>   </TEL>   <TEL>     <WORK/>     <CELL/>     <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <FAX/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <PAGER/>

    <NUMBER></NUMBER>

  </TEL>

  <TITLE></TITLE>

  <ORG>

    <ORGUNIT></ORGUNIT>

  </ORG>

</vCard>]]>

 

 

This works for me with Openfire 3.4.5 Windows2003 and many clients.

 

 

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 14, 2008 7:34 AM in response to: sparki
Re: AD displayName not showing in Roster

I just realized that my last post had a bad vCard mapping.  I do not know how, but it did.  This shoould be the correct one:

 

 

<vcard-mapping><![CDATA[

<vCard xmlns="vcard-temp">

  <N>

<FAMILY></FAMILY>

<GIVEN></GIVEN>

  </N>

  <EMAIL>

    <INTERNET/>

    <USERID></USERID>

  </EMAIL>

  <FN></FN>   <NICKNAME></NICKNAME>

  <PHOTO>

    <TYPE>image/jpeg</TYPE>

    <BINVAL></BINVAL>

  </PHOTO>

  <ADR>

    <HOME/>

    <STREET></STREET>

  </ADR>

  <ADR>

    <WORK/>

    <STREET></STREET>

    <LOCALITY></LOCALITY>

    <REGION></REGION>

    <PCODE></PCODE>

  </ADR>

  <TEL>

    <HOME/>

    <VOICE/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <VOICE/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <CELL/>

    <NUMBER></NUMBER>

  </TEL>

  <TEL>

    <WORK/>

    <PAGER/>

    <NUMBER></NUMBER>

  </TEL>

  <TITLE></TITLE>

  <ORG>

    <ORGUNIT></ORGUNIT>

  </ORG>

</vCard>]]></vcard-mapping>

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 19, 2008 7:46 AM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

Let's expand on the openfire.xml a little:

 

<usernameField>sAMAccountName</usernameField>

<searchFilter>(objectClass=organizationalPerson)</searchFilter>

<vcard-mapping><![CDATA[

<vCard xmlns="vcard-temp">

<N>

<FAMILY></FAMILY>

<GIVEN></GIVEN>

</N>

<EMAIL>

<INTERNET/>

<USERID></USERID>

</EMAIL>

<FN></FN> <NICKNAME></NICKNAME>

<ADR>

<HOME/>

<STREET></STREET>

<PCODE></PCODE>

<CTRY></CTRY> </ADR> <ADR> <WORK/> <STREET></STREET> <LOCALITY></LOCALITY> <REGION></REGION> <PCODE></PCODE> <CTRY></CTRY>

</ADR>

<TEL>

<HOME/>

<VOICE/>

<NUMBER></NUMBER>

</TEL>

<TEL>

<HOME/>

<CELL/>

<NUMBER></NUMBER> </TEL> <TEL> <WORK/> <VOICE/> <NUMBER></NUMBER> </TEL> <TEL> <WORK/> <CELL/> <NUMBER></NUMBER>

</TEL>

<TEL>

<WORK/>

<FAX/>

<NUMBER></NUMBER>

</TEL>

<TEL>

<WORK/>

<PAGER/>

<NUMBER></NUMBER>

</TEL>

<TITLE></TITLE>

<ORG>

<ORGUNIT></ORGUNIT>

</ORG>

</vCard>]]></vcard-mapping>

<nameField>givenName</nameField>

<emailField>mail</emailField>

<groupNameField>cn</groupNameField>

<groupMemberField>member</groupMemberField>

<groupDescriptionField>description</groupDescriptionField>

<posixMode>false</posixMode>

<groupSearchFilter>(objectClass=group)</groupSearchFilter>

Jonathon Taylor Bronze 11 posts since
Apr 2, 2007
Currently Being Moderated
Feb 26, 2008 2:10 PM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

I am having the same trouble with Spark. We use Sun LDAP and have the mappings set properly but when people accept add requests to their roster the nickname is always replaced with the <usernameField> (i.e. uid) and the <NICKNAME> mapping is ignored. Since are user names are meaningless it causes a bit of confusion. Is there a bug open for this on the Spark client side? My config is attached.

 

 

 

 

<usernameField>uid</usernameField>

<vcard-mapping><![CDATA[

<vCard xmlns="vcard-temp">

<N>

<GIVEN></GIVEN> </N> <EMAIL> <INTERNET/> <USERID></USERID> </EMAIL> <FN></FN>

<NICKNAME></NICKNAME>

<ADR>

<HOME/>

</ADR>

<ADR>

<WORK/>

</ADR>

<ORG>

<ORGUNIT></ORGUNIT>

</ORG>

</vCard>]]></vcard-mapping>

<nameField>cn</nameField>

<emailField>mail</emailField>

<groupNameField>cn</groupNameField>

<groupMemberField>member</groupMemberField>

<groupDescriptionField>description</groupDescriptionField>

<posixMode>false</posixMode>

</ldap>

<provider>

<vcard>

<className>org.jivesoftware.openfire.ldap.LdapVCardProvider</className& gt;

</vcard>

<user>

<className>org.jivesoftware.openfire.ldap.LdapUserProvider</className&g t;

</user>

<auth>

<className>org.jivesoftware.openfire.ldap.LdapAuthProvider</className&g t;

</auth>

<group>

<className>org.jivesoftware.openfire.ldap.LdapGroupProvider</className& gt;

</group>

</provider>

<setup>true</setup>

<log>

<debug>

<enabled>false</enabled>

</debug>

</log>

</jive>

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 26, 2008 2:34 PM in response to: Jonathon Taylor
Re: AD displayName not showing in Roster

in spark if you are manually adding users to your roster the nickname is autoentered as the userid of the username.  If you want it to be something else you need to tab to that field and change it before saving the user to your roster.  This can be avoided by using shared groups which auto-populate users to the rosters.  This will use vCard data to add the names to the roster.

Jonathon Taylor Bronze 11 posts since
Apr 2, 2007
Currently Being Moderated
Feb 26, 2008 3:25 PM in response to: Todd Getz
Re: AD displayName not showing in Roster

Thanks for the explanation. We can't auto populate our rosters so people use the search feature to find and manually add others to their roster. We have documented the way Spark behaves for our users but it just seems counter intuitive. Especially since when you get an invitation it is the UID and so makes it difficult to know who is really asking to be added to your roster.

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 26, 2008 3:27 PM in response to: Jonathon Taylor
Re: AD displayName not showing in Roster

Just because you have me curious, but why can't you auto-populate the roster?

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 27, 2008 8:29 AM in response to: Graeme Wilson
Re: AD displayName not showing in Roster

 

Don't forget to mark this thread as answered (and award any points as merited), so that users know this issue has been resolved.

 

 

Todd Getz KeyContributor 2,568 posts since
Apr 2, 2007
Currently Being Moderated
Feb 27, 2008 10:14 AM in response to: