Page 1 of 1

Login with no-ascii username

PostPosted:Tue Apr 01, 2008 4:44 pm
by cleven
When I login with no-ascii username(Chinese username): 汉字, the JBoss(JAAS) receive a bad username, it\'s not use UTF-8 to read username. The log is:
2008-04-02 00:39:31,230 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Bad password for username=汉字

Please help me.
My english is very poor, sorry.

Re:Login with no-ascii username

PostPosted:Wed Apr 02, 2008 8:23 am
by pavila
This seems to be a JBoss related issue. Perhaps you should try in JBoss forums. By the way, the property files encoding should be ISO-8859-1 so if you use chinese passwords they have to be encoded.

Re:Login with no-ascii username

PostPosted:Wed Apr 02, 2008 9:23 am
by cleven
Yes, the property files I use native2ascii convert to ISO-8859-1, and in OpenKM the Chinese users, roles display right.
I google about JBoss and JAAS, can\'t find any solution. Can I use custom authorization instead of OpenKM\'s JAAS authorization? How to config?
I\'m try to change some source code to skip JBoss\'s JAAS now.

Thank you for your quickly help.

Re:Login with no-ascii username

PostPosted:Wed Apr 02, 2008 9:25 am
by cleven
I\'m use Ubuntu too 8-)

Re:Login with no-ascii username

PostPosted:Fri Apr 04, 2008 10:21 am
by pavila
Good choice :)