On Tue, Jul 08, 2003 at 04:31:32PM +0400, Emel`chenko Alexander wrote: > I want to store encrypted (md5) passwords of users (not clear text) in the file > "users" > How can I make it?
One way: if you are using freeradius on a glibc2 based system, crypt can do md5 for you (check man crypt). Just add an Crypt-Password Attribute with the md5 password in it (glibc2 style -- see man crypt). This will look like: user Auth-Type := Crypt-Local, Crypt-Password == "$1$theSEED$mxUW8Dn4Wa/zxOMCirCTO0" The other way: Use PAP, but this is very tricky. I only succeeded after patching the auth section of freeradius to actually use the pap module (cause the basic auth will go first if it thinks it can handle the crypt). So its better if you succeed in the first method :) Oliver. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
