Simple flat file passwords?
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
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"
From the "man" page for rlm_passwd: The key field is signified by being preceded with a '*' character, which indicates that the field has only one key, like the /etc/passwd file.
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
Because you configured rlm_passwd wrong. And don't set the "auth_type" in rlm_passwd. I think I'm going to remove that option from the CVS head. It's just too confusing. Alan DeKok.
Stunning! Thanks Alan, that was all it took. I didn't even realise there WAS a man page for the rlm_ modules. I'll go read some now. |\/|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 "Alan DeKok" <aland@ox.org> Sent by: To freeradius-users- FreeRadius users mailing list bounces@lists.fre <freeradius-users@lists.freeradius. eradius.org org> cc 03/08/2005 18:17 Subject Re: Simple flat file passwords? Please respond to FreeRadius users mailing list <freeradius-users @lists.freeradius .org>
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"
From the "man" page for rlm_passwd: The key field is signified by being preceded with a '*' character, which indicates that the field has only one key, like the /etc/passwd file.
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
Because you configured rlm_passwd wrong. And don't set the "auth_type" in rlm_passwd. I think I'm going to remove that option from the CVS head. It's just too confusing. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Martin.Ward@uk.neceur.com