Escaping of User Names

Alan DeKok aland at deployingradius.com
Mon Feb 5 13:50:25 CET 2007


Peter Nixon wrote:
> The errors Postgresql shows in the log are:
> 2007-02-05 14:22:59 EET saaas raduser ERROR:  invalid byte sequence for 
> encoding "UTF8": 0x85
> 2007-02-05 14:23:26 EET saaas raduser ERROR:  invalid byte sequence for 
> encoding "UTF8": 0x87

  Ah, yes.  The standard encoding problems.

  RADIUS usernames are supposed to be UTF-8, but as you can see, the
user isn't following that.

  The solution is probably to hack "sql_safe_chars" to escape characters
above 0x80, or to have it validate UTF-8 strings... and then escape
non-UTF-8 characers.

  Alan DeKok.
--
  http://deployingradius.com       - The web site of the book
  http://deployingradius.com/blog/ - The blog



More information about the Freeradius-Devel mailing list