Page 1 of 1

UTF8 chars in username

PostPosted:Sat Nov 22, 2008 9:34 am
by werdy
I can use UTF8 chars in username (UID) like \"Zoltán\" but when I try to login with this user I always get authentication error. Is it a bug or a feature?

Re:UTF8 chars in username

PostPosted:Sun Nov 23, 2008 10:49 am
by pavila
I will try it because we always have tested ascii logins.

Re:UTF8 chars in username

PostPosted:Sun Nov 23, 2008 12:03 pm
by jllort
Probably it could be some jboss configuration parameter, take a look at this jboss forum post.

Seems that DatabaseServerLoginModule can\'t get the correctly-encoded username and must be configured org.apache.catalina.authenticator.FormAuthenticator in order to get utf-8 encoded username.

Some uri to configure vale.

Add context.xml to /WEB-INF/ and deploy to my jboss server. Now the username can be fetched correctly now and my users can use UTF-8 characters in their login id;

the context.xml must be:
<Context>
<Valve
className=\"org.apache.catalina.authenticator.FormAuthenticator\"
characterEncoding=\"UTF-8\" />
</Context>

Note I\'ve not tried it on my testing environment, but seems it could be the solution to the problem.

Re:UTF8 chars in username

PostPosted:Sun Nov 23, 2008 5:52 pm
by werdy
Solved. I put <Valve*> into openkm/server/default/deploy/jboss-web.deployer/context.xml and voila: works :)

Thank your fast reply.