Simple flat file passwords

Martin.Ward at Martin.Ward at
Thu Aug 4 10:13:46 CEST 2005

The answer to a simple problem is, naturally, simple, and my thanks go to
Alan for pointing out the obvious.

The short version is:

Configure the passwd module in the modules section thus:

modules {
      ... <any other stuff you want configured> ...
      passwd text_file {
            filename = /var/text_file
            format = "*User-Name:User-Password"

and configure the authorize section like so:

authorize {
      ... <other authorize stuff, life preprocessing> ...

Now, when I run radtest I get the results I expect:

rad_recv: Access-Request packet from host, id=164,
        User-Name = "mward"
        User-Password = "feeble"
        NAS-IP-Address =
        NAS-Port = 10
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
  modcall[authorize]: module "preprocess" returns ok for request 1
radius_xlat:  '/var/log/freeradius/radacct/'
/var/log/freeradius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d expands
to /var/log/freeradius/radacct/
  modcall[authorize]: module "auth_log" returns ok for request 1
rlm_passwd: Added User-Password: 'feeble' to config_items
  modcall[authorize]: module "text_file" returns ok for request 1
modcall: group authorize returns ok for request 1
auth: type Local
auth: user supplied User-Password matches local User-Password
Sending Access-Accept of id 164 to
Finished request 1


Senior Network Administrator, NEC (Europe) Ltd.
Acton extension: 3379
NEC*Net: 800-44-21-3379
Direct: +44 20 8752 3379
Fax: +44 20 8752 3389
Mobile: +44 7721 869 356

More information about the Freeradius-Users mailing list