Please Help -- Openfire 3.3.2, Spark 2.5.4, Active Directory

Hey Everyone,

I’'m looking to transition my organization (~7,500 users) to a Spark/Openfire solution. Let me describe the situation:

*Using Openfire 3.3.2 and Spark 2.5.4

*Integrated into the Active Directory via LDAP

*The usernames for Openfire are based off of the attribute in Active Directory. This is a 9-digit number.

*Everyone’'s names are from the attribute (in the format of “last name, first name”). Other options for names include the first name and last name .
*The “SSO” feature in Spark 2.5.4 works perfectly – the client seems to grab the Windows login session information perfectly.
*User search works ok (more details below). -


ISSUE #1: The Show-Stopper


If a user isn’‘t in my roster, and they IM me, their name doesn’‘t show up at the top of the chat window. Instead, I see “#########@openfire” (where ######### is their 9-digit SSO and “openfire” is the name of the server). However, if I add them to my roster – and erase ######### from the nickname field (leaving it blank) – their nickname shows up as it is defined in the AD. It would appear that Spark isn’‘t looking at the v-card until after a user is added to the roster – however, their email address and worker title show up under the “#########@openfire” name. I know it’‘s a small and picky problem, but its something I must figure out before I transition 7,500 people over to Openfire. I mean, they’'re not going to be happy anyhow (since something they commonly use will be changing drastically), but replacing it with something that has this nagging feature will make it ten times worse. Does anyone have a solution to this? Your help would be much appreciated! -


ISSUE #2: Would Be Nice…


User search in our present IM solution is bad anyhow, so this isn’‘t a show stopper. It would be nice to have it fixed though: I have the full name linked to in LDAP – which has the format of “last name, first name.” In our AD, a user’'s first name is and last name is . This creates an issue…

Let’'s say I want to search for “Justin White.” These searches work:

  • “Justin”

  • “White”

  • “White, Justin”

Yet this one does not work:

  • “Justin White”

In our user focus groups, this is the search method people tried most often – and complained about. However, I don’‘t have an LDAP field that has names in this particular format (and I don’'t think I can have one made either).

Any thoughts on this one either? Thanks!!!

to your first issue, are you publishing rosters from openfire or just letting people create their own buddy lists?

we are using AD as our user base and are creating seperate security groups for our users as we add them, those security groups then show up in openfire and I share them out as buddy lists. This might not be easy if your AD user base is 7500. we are doing it so we can also deploy spark and spark settings out to the groups as we add groups.

Thanks for your reply.

We let users create their own buddy rosters. It’‘s interesting because, when a user that’‘s not on your list sends you an IM, their worker title and email show up – so I know the client is getting their vcard information. It’'s just not referring to the vcard to get their nickname/name.

So this might be helpful…

I was looking over the source code for Spark, and I found this starting at line 145 in \src\java\org\jivesoftware\spark\ui\VCardViewer.java:

usernameLabel.setForeground(Color.GRAY);

if (ModelUtil.hasLength(firstName) && ModelUtil.hasLength(lastName)) {

usernameLabel.setText(firstName + " " + lastName);

}

else {

String nickname = SparkManager.getUserManager().getUserNicknameFromJID(jid);

usernameLabel.setText(UserManager.unescapeJID(nickname));

}

For LDAP integration in Openfire, it does not let you specify the first and last name…only the full name and nickname. If you look at a user’'s profile, it has the “first, last” for first name and a blank last name. Therefore, in the IF statement above, it fails and reverts to using the else portion (i.e. the JID).

I’‘ve tried defining the first and last names in the /conf/openfire.xml, but it doesn’'t work. If only I can get their first and last names populated in the vcard using LDAP info, their name will show up.

Any thoughts as to how to do this?