This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
0 Replies Last post: May 28, 2008 11:59 AM by Andres Mujica  
Andres Mujica Bronze 20 posts since
Mar 28, 2008
Currently Being Moderated

May 28, 2008 11:59 AM

Mysql authentication and name in spark

Hi i've got a problem and couldn't find a solution at this point.

 

I've got my openfire system configured with a custom mysql database.

 

this is my UserProvider openfire.xml config.  I'm using a postfix database schema (it's a mail server with mysql backend)

 

  select name,username from mailbox where username = concat_ws('@',?,'maildomain.com') select count(*) from mailbox SELECT SUBSTRING_INDEX(username, '@', 1) FROM mailbox select substring_index(username,'@',1) from mailbox where username = concat_ws('@',?,'maildomain.com') username name username ]]>

 

so according what i've found the nameField mapping tells to openfire that the complete name is at the name field.

 

If i check at the console i can get the list of users with their login and their name as desired  (  jperez  -  juan perez)

 

The problem i've got is that from spark or pidgin the contact's name is displayed as username (jperez) instead of name (juan perez)

 

What am i doing wrong, any ideas?

More Like This

  • Retrieving data ...