Tag Archive for freeradius

FreeRadius MySql user password hashing

Here’s the quick note on how to insert hash password entry in mysql for FreeRadius environment.
Run insert via linux terminal using this line:

INSERT INTO radcheck (username, attribute, op, password) VALUES('admin','Crypt-Password', ':=',  encrypt('test1234'));

Result entry di dalam database :

VALUES('admin','Crypt-Password',':=','YHx56BpoLV0uU');

Notice that the password value is encrypted from ‘test1234‘ becoming ‘YHx56BpoLV0uU‘.

Hashing method yang boleh digunakan di FreeRadius environment.

{clear} User-Password clear-text passwords
{cleartext} User-Password clear-text passwords
{crypt} Crypt-Password Unix-style “crypt”ed passwords
{md5} MD5-Password MD5 hashed passwords
{smd5} SMD5-Password MD5 hashed passwords, with a salt
{sha} SHA-Password SHA1 hashed passwords
{ssha} SSHA-Password SHA1 hashed passwords, with a salt