Simple flat file passwords?

Martin.Ward at uk.neceur.com Martin.Ward at uk.neceur.com
Wed Aug 3 18:34:07 CEST 2005


I am trying to use the passwd module to configure a simple flat file with
two fields, a user name and a password. I believe I have the module
configured right:

passwd text_file {
                filename = /var/text_file
                format = "*User-Name:*User-Password"
                authtype = PAP
        }

The contents of this file are:

mward:feeble

However I can't figure out which authtype to use. If I use PAP (above) I
get the following errors:

rlm_pap: login attempt by "mward" with password feeble
rlm_pap: No password (or empty password) to check against for for user
mward

If I use CHAP or MSCHAP I get errors like:

rlm_chap: Attribute "CHAP-Password" is required for authentication. Cannot
use "User-Password".

and if I change the format=line to suit, my passwd module fails with:

modcall[authorize]: module "text_file" returns notfound for request 0

Can anyone point out the undoubtedly siple thing I am missing? Thanks.

|\/|artin
--
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