LDAP GivenName in the Spark Roster instead of username

Hello Community,

I installed and use the openfire server with customized spark (corporate design). We are testing now and want to deploy spark for the whole company (nearly 5.000 users without sales reps). I connect the openfire server to our corporate Active Directory via ldap.

Now my question is: Can I change the standard name of a user in the spark roster to ldap field “givenName” or “displayName” or somethinig similiar? Because the “samAccountName” is good for userid/username but ugly for a contact list. Of course you can change the name after adding to roster but it would be nice to see the real name at first time you add the user.

My attempts so far:

  1. vcard settings: I try the vcard settings to change the standard name in the spark roster for new contacts (nickname, FN, …) => without success for the roster entry.

  2. server settings: I try to change the system properties (ldap.nameField,…) => without success for the roster entry.

I’ve searched the forum already but didn’t find the correct answer for my issue. Maybe I have to configure something special in spark? Can anybody help me?

Thank you very much,

Benni

Strange. By default all my users in roster are shown with displayName.

Verify that your vcard.mapping is correct, both GIVEN and FN must be {cn}{displayName}

Hi and thanks for the fast reply. The relevant vcard configuration is:

{sn}

 <GIVEN>{givenName}</GIVEN>

{givenName} {sn}

{displayName}

And it works fine for me. Also the Nickname in the profile information in spark is working correctly. The Nickname is firstname and surname like it should. But if I search a user and add him to the roster, the username is shown. Maybe there is another configuration issue? The relevant server configuration attributes are configured like this:

ldap.nameField = displayName

ldap.usernameField = samaccountname

the ldap.usernameField is for the username, right? => username@chat.server.lan

and the ldap.nameField is for the roster name? => lastname firstname

But in the roster I have only the samaccountname if I add someone.

Best and thanks a lot for help,

Benni

1 Like

In my case, i’m pushing the roster server side and i don’t have that problem. It might be related to Spark? Try other clients.

Thank you for the ideas but I tried pidgin (http://pidgin.im) and miranda (http://www.miranda-im.org/) and miranda fusion (http://miranda-fusion.de) yesterday and there is the same issue.

In Spark I get the right information in the profile overview. In Miranda and Pidgin I’ve got only the JID and the other vcard attributes are not visible ().

Any ideas!? I think there is only one small config flag, maybe in spark to solve this issue.

Best and thanks,

Benni

Hi Community and Hello Benni,

Just have a question for you since you had implemented the ldap. Did you manage to run the .msi installer on the latest version? I’m testing sparks now and planned to implement on a small groups. I don’t have concrete guide on spark.exe to .msi conversion did you somehow manage this?

would appreciate if you could provide one.

Thank you very much.

Eman.

Hi Eman,

I installed the spark client with a self-extracted zip-file. I think that’s the easiest way to deploy it on a mass of machines. Here are the instructions to do this way:

  1. install spark with JRE (bundled) on a single machine.

  2. compress the folder you have installed on your machine in a zip/rar/exe/… whatever you want.

  3. deploy spark with automatically extract this zip-file easily.

You can configure the extraced installation with a property-file in the root of installed spark with the name: spark.properties. You will find a lot of help and a document here for example: http://community.igniterealtime.org/docs/DOC-2163

The “zipping” way is no problem and works fine. Here is another post where wroot had answered my question for that way: http://community.igniterealtime.org/message/228262

I hope this is a helpful answer for you. But it has nothing to do with the topic of this discussion, right!?

Best,

Benni

1 Like

Hi Benni,

Thank you for your response. I haven’t tried your suggestions though is that means I need to configure on individual machine?

I was able to find solution as discussed in here http://community.igniterealtime.org/docs/DOC-2126#/?page=2 I was able to repack using the new recipe with total size of 30.9 mb but when I check the content of my Spark_2.6.3.12555 xml there was nothing in there. I also compare the recipe posted on the above link and it was completely different on my xml build. For now, I’m stuck at this point!

Did you have an LDAP configuration in your server? I’m using default config - Store users and groups in the server database.

any advise is highly appreciated.

Eman.

And it works fine for me. Also the Nickname in the profile information in spark is working correctly. The Nickname is firstname and surname like it should. But if I search a user and add him to the roster, the username is shown. Maybe there is another configuration issue?

Hi Benni,

I have the same problem with nickname when adding a new contact to roster (initial nickname is the same as SAMAccountName despite ldap.vcard-mapping contains {displayName} and ldap.nameField = displayName).

Have you managed to solve this?

Thank you in advance