ntpasswd not UTF-8 safe?

Josh Howlett josh.howlett at bristol.ac.uk
Tue Jul 25 13:43:59 CEST 2006

On 25 Jul 2006, at 11:28, Alan DeKok wrote:
>>> but it's not clear
>>> how to store and mark UTF-8 attributes within FreeRADIUS.
>> Okay, but in the context of rlm_mschap only, we don't have to worry
>> about this - right?
>   If the password is UTF-8, that has to be handled by rlm_mschap.

Do you think the simplest approach is to *always* iconv() the  
password from UTF-8 to Unicode in "ntpwdhash"? If the password is  
either ASCII or UTF-8 then it should work (because ASCII is a subset  
of UTF-8). (If it's some other multi-byte encoding it'll fail, but  
then it would fail anyway with the existing code.)

best regards, josh.

Josh Howlett, Networking Specialist, University of Bristol.
email: josh.howlett at bristol.ac.uk | phone: +44 (0)7867 907076 |  
internal: 7850

More information about the Freeradius-Devel mailing list