User's Display Name

I have looked at as many of the posts as I could find (such as this one)

I realize that this issue has been talked about a fair amount throughout the forums, but I still don’t have a solution to it…

  • We are using Openfire 3.4.5, Spark 2.5.8, and LDAP with an embedded database.

  • our AD usernames are first initial last name (ie John Smith = JSmith)

  • Display name in AD is set to their Fullname

  • I have created groups in AD based on office location (we have 6).

  • groups (shared) and members show up fine when you log into Spark.

If I view a users full profile their nickname will appear as “John Smith”.

Regardless of what I do in OpenfireI can NOT get the usernames to appear as anything other than sAMAccountname in Spark. That is UNLESS I:

  • log on to Spark

  • search for a user (which already exists in on of the 6 groups)

  • add that user as a Contact

  • change the users Nickname (which in this screen appears as JSmith)

  • remove that newly added contact

At this point that user will appear in my contact list as “John Smith” AND logging out/in does not change this (it will remain this way). It’s easy to see why I don’t want to have 150 users have to do this for 150 contacts…

  1. why does the “Add as Contact” screen display the Nickname as one thing while the profile displays it as another?

  2. how can I get the Users names to display as in the groups?

Please, please help put me out of my misery?!

Are your users automatically populated to the roster or do they need to be manually added? If you use shared groups the names should be listed as the Display Name. If you are using shared groups please include a copy of your openfire.xml (edited for security).

Thanks for the quick reply. We are using shared groups

]]>

mail

cn

member

description

false

(objectClass=group)

org.jivesoftware.openfire.ldap.LdapVCardProvider

org.jivesoftware.openfire.ldap.LdapUserProvider

org.jivesoftware.openfire.ldap.LdapAuthProvider

org.jivesoftware.openfire.ldap.LdapGroupProvider

true

Here is my section of the openfire.xml:

<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>

</ldap>

many thanks mtstravel,

I am very close to the right display. Using your config, the users show up as Firstname only which is still more convenient and functional for the users than firstinitial-lastname.

I can play around with the config until I have what I need.

Maybe change this

You are absolutely correct. I made that change a few minutes ago and it worked great (other than the fact that I need to cleanup my display names in AD).

Your help was greatly appreciated.

Cheers

I’m having the same issue with Openfire 3.7.0 and Spark 2.6.3. We are using shared groups. Right now there is a mix of Doe, John, doej, and doej@openfire displaying in Spark. We’d like them to just be Doe, John.

This is our openfire.xml. What do I need to add/change to get the names standardized in Spark?

<?xml version="1.0" encoding="UTF-8"?> 9090 9091 en org.jivesoftware.database.DefaultConnectionProvider net.sourceforge.jtds.jdbc.Driver jdbc:jtds:sqlserver://********/OPENFIRE;appName=jive ****** ****** select 1 true true 5 25 1.0 true

Hi My Openfire.XML like below. What i need to do to get the first name and last name as same as LDAP. Now i am getting SAM account name as firstname and others empty.

http://

<?xml version="1.0" encoding="UTF-8"?>

9090

9091

en

org.jivesoftware.database.EmbeddedConnectionProvider