Unable to authenticate in case of multilingual characters
Hi, While I am doing testing of my RADIUS client with multilingual characters consits in the username to check my multilingual support module. At that time I am using* FREE RAIDUS server*, I have attached all configuration files related to my setup with this mail. *username :* ∞ *password :* gameover I have sent the username after encoding username = ∞ that is 0xe2889e into UTF-8 that is 0xf8 0xb8 0xa2 0x9e to RADIUS server. But I am not able to authenticate user with the *FREE RAIDUS server*, who wants to login with the above credentials everthough there is not problem in UTF-8 encoded characters. So, Can you please help me out to resolve this issue or pointing me out if i am going in some wrong way by looking into the config file attached. I have also attached the error log of the RADIUS server and wireshark output with this mail. Regards, Karnik jain
karnik jain wrote:
While I am doing testing of my RADIUS client with multilingual characters consits in the username to check my multilingual support module. At that time I am using* FREE RAIDUS server*, I have attached all configuration files related to my setup with this mail. ... I have sent the username after encoding username = ∞ that is 0xe2889e into UTF-8 that is 0xf8 0xb8 0xa2 0x9e to RADIUS server. But I am not able to authenticate user with the *FREE RAIDUS server*, who wants to login with the above credentials everthough there is not problem in UTF-8 encoded characters.
It looks like the User-Name *isn't* UTF-8. Alan DeKok.
Hi Alan, I have written multilingual character *∞ *directly in RADIUS server's *users file.* without encoding it into UTF-8. * * Do I need to write Username in *user file of RADIUS server *after converting it into UTF-8 to make the *whole thing work*? If Yes then How can I write UTF-8 characters into *users file of RADIUS server.* Do I need to write directly the *HEX of encoded characters* or some other way into the *users file of RADIUS server as shown in attached users file of RADIUS server*? * * I have double check that the UTF-8 Encoder of mine is working fine. Multilingual character = ∞ (infinity symbol) is having equivalent form in HEX = *0xe2889e* and UTF-8 encoding of *0xe2889e* is = *0xf8 0xb8 0xa2 0x9e.* *Can any one please look into to above issue * *and guide me How can I configure the files of free RADIUS server * *to use USER-NAME field other than **US-ASCII like * *Chinese etc.?* * * *Regards,* *Karnik jain* On Fri, Feb 4, 2011 at 8:02 PM, Alan DeKok <aland@deployingradius.com>wrote:
karnik jain wrote:
While I am doing testing of my RADIUS client with multilingual characters consits in the username to check my multilingual support module. At that time I am using* FREE RAIDUS server*, I have attached all configuration files related to my setup with this mail. ... I have sent the username after encoding username = ∞ that is 0xe2889e into UTF-8 that is 0xf8 0xb8 0xa2 0x9e to RADIUS server. But I am not able to authenticate user with the *FREE RAIDUS server*, who wants to login with the above credentials everthough there is not problem in UTF-8 encoded characters.
It looks like the User-Name *isn't* UTF-8.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--On 04 February 2011 22:02 +0530 karnik jain <karnik.jain@gmail.com> wrote:
Hi Alan,
I have written multilingual character *∞ *directly in RADIUS server's *users file.* without encoding it into UTF-8. * * Do I need to write Username in *user file of RADIUS server *after converting it into UTF-8 to make the *whole thing work*?
If Yes then How can I write UTF-8 characters into *users file of RADIUS server.*
Do I need to write directly the *HEX of encoded characters* or some other way into the *users file of RADIUS server as shown in attached users file of RADIUS server*? * * I have double check that the UTF-8 Encoder of mine is working fine. Multilingual character = ∞ (infinity symbol) is having equivalent form in HEX = *0xe2889e* and UTF-8 encoding of *0xe2889e* is = *0xf8 0xb8 0xa2 0x9e.*
*Can any one please look into to above issue * *and guide me How can I configure the files of free RADIUS server * *to use USER-NAME field other than **US-ASCII like * *Chinese etc.?* * * *Regards,* *Karnik jain*
Hi Karnik, If you put UTF in the users file and UTF in the User-Name in the radius request it will work. For example: users: "現年快樂" Auth-Type := Accept ...and then testing it: echo 'User-Name = "現年快樂"' | radclient -x 137.222.253.91:16010 auth SECRET Sending Access-Request of id 161 to 137.222.253.91 port 16010 User-Name = "現年快樂" rad_recv: Access-Accept packet from host 137.222.253.91 port 16010, id=161, length=20 Regards, James -- James J J Hooper Network Specialist Information Services University of Bristol http://www.wireless.bristol.ac.uk --
participants (3)
-
Alan DeKok -
James J J Hooper -
karnik jain