how to set crypted password in 'users' file?

Min Qiu mqiu at globalinternetworking.com
Thu Jan 19 20:09:32 CET 2006


Hi all,

I'm able to make clear text password work by adding entry in 
'users' file:

  mqiu    Auth-Type := Local, User-Password == "clear-text"

However, cut and past the crypted password from /etc/shadow to 
the entry failed:

  mqiu    Auth-Type := Local, User-Password == "$1$CWOjXm2v$dzjrc385t1iQXMN0"

Change above Auth-Type to "pam" or "unix" does not work.  My
question is how to set an crypted password in 'users' file?  In 
addition, how to set different passwords for the same user in
different hosts? something like:

  mqiu at 10.1.1.0/24    Auth-Type := Local, User-Password == "pass1"
  mqiu at 10.1.2.0/24    Auth-Type := Local, User-Password == "pass2"
  ...
  mqiu at 10.1.N.0/24    Auth-Type := Local, User-Password == "passN"

I have freeradius-1.0.4-1.FC4.1 installed.

Thanks a lot,

Min




More information about the Freeradius-Users mailing list