Hello, Im trying to use virtual server config for the freeradius. But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user My config for the sites-enables is: ----------------------- listen { ipaddr = * port = 1821 type = auth } server one { authorize { preprocess files perl } authenticate { Auth-Type Perl { perl } } accounting { unix radutmp } session { radutmp } } server two { } client 139.179.14.250 { shortname = example-client secret = testing123 virtual_server = one } -------------------------------------- Also added the following under the modules section of radiusd.conf -------------- perl { module = /usr/local/bin/login.pl func_authenticate = authenticate func_authorize = authorize } --------------- this is the ouput of the radiusd -X. rad_recv: Access-Request packet from host 139.179.14.250 port 36926, id=31, length=56 User-Name = "test" User-Password = "test" NAS-IP-Address = 139.179.14.250 NAS-Port = 10 server one { +- entering group authorize ++[preprocess] returns ok ++[files] returns noop perl_pool: item 0x88af708 asigned new request. Handled so far: 1 found interpetator at address 0x88af708 rlm_perl: Added pair User-Name = test rlm_perl: Added pair User-Password = test rlm_perl: Added pair NAS-Port = 10 rlm_perl: Added pair NAS-IP-Address = 139.179.14.250 perl_pool total/active/spare [32/0/32] Unreserve perl at address 0x88af708 ++[perl] returns ok auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user auth: Failed to validate the user. } # server one Found Post-Auth-Type Reject WARNING: Unknown value specified for Post-Auth-Type. Cannot perform requested action. Sending Access-Reject of id 31 to 139.179.14.250 port 36926 PS: the same perl script works fine with single freerad config.
Oguzhan Kayhan wrote:
But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
If you want to force authentication via the Perl module, you have to set that manually. Alan DeKok.
Oguzhan Kayhan wrote:
But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
If you want to force authentication via the Perl module, you have to set that manually.
Isn't the line : authenticate { Auth-Type Perl { perl } } on the config file under sites-enabled forces for perl authentication? Do i need to configure it smwhere else too? As i see it checks the username/passwd via perl actually, because when i give an invalid username i got the user/pass error. But with a valid user/pass i got the (Auth-Type) error. PS:I will use perl authentication only in one of my virtual servers.. Rest will use different auth methods..
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi, You have to tell freeradius that the auth succeeded - otherwise it just keeps on processing the modules until it runs out of them - and then it just complains. control:Auth-Type - might help. kind regards Pshem 2008/8/4 Oguzhan Kayhan <oguzhank@bilkent.edu.tr>:
Oguzhan Kayhan wrote:
But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
If you want to force authentication via the Perl module, you have to set that manually.
Isn't the line :
authenticate { Auth-Type Perl { perl } }
on the config file under sites-enabled forces for perl authentication? Do i need to configure it smwhere else too?
As i see it checks the username/passwd via perl actually, because when i give an invalid username i got the user/pass error. But with a valid user/pass i got the (Auth-Type) error.
PS:I will use perl authentication only in one of my virtual servers.. Rest will use different auth methods..
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
You have to tell freeradius that the auth succeeded - otherwise it just keeps on processing the modules until it runs out of them - and then it just complains. control:Auth-Type - might help.
kind regards Pshem
Thank you for the hint. When i change the authorize section as follows it worked. server one { authorize { preprocess files update control { Auth-Type := perl } perl }
2008/8/4 Oguzhan Kayhan <oguzhank@bilkent.edu.tr>:
Oguzhan Kayhan wrote:
But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
If you want to force authentication via the Perl module, you have to set that manually.
Isn't the line :
authenticate { Auth-Type Perl { perl } }
on the config file under sites-enabled forces for perl authentication? Do i need to configure it smwhere else too?
As i see it checks the username/passwd via perl actually, because when i give an invalid username i got the user/pass error. But with a valid user/pass i got the (Auth-Type) error.
PS:I will use perl authentication only in one of my virtual servers.. Rest will use different auth methods..
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
You have to tell freeradius that the auth succeeded - otherwise it just keeps on processing the modules until it runs out of them - and then it just complains. control:Auth-Type - might help.
kind regards Pshem
Thank you for the hint. When i change the authorize section as follows it worked. server one { authorize { preprocess files update control { Auth-Type := perl } perl }
2008/8/4 Oguzhan Kayhan <oguzhank@bilkent.edu.tr>:
Oguzhan Kayhan wrote:
But i got the following error when i test the config. auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user
If you want to force authentication via the Perl module, you have to set that manually.
Isn't the line :
authenticate { Auth-Type Perl { perl } }
on the config file under sites-enabled forces for perl authentication? Do i need to configure it smwhere else too?
As i see it checks the username/passwd via perl actually, because when i give an invalid username i got the user/pass error. But with a valid user/pass i got the (Auth-Type) error.
PS:I will use perl authentication only in one of my virtual servers.. Rest will use different auth methods..
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Oguzhan Kayhan -
Pshem Kowalczyk