I'm trying to configure freeradius to check the users file at authorization 
stage

**users file**
DEFAULT Auth-Type := System
         Service-Type = Framed-User,
         Framed-IP-Address = 255.255.255.254


And then lookup the password using the SQL module.

i have this in radiusd.conf
authorize { files }
authenticate { sql }
and the sql database correctly setup

but it doesnt work, this is the result from radiusd -xx

Waking up in 31 seconds...
Thread 1 handling request 0, (1 handled so far)
         User-Name = "freite"
         Password = "c\273\317\316+\245I\000\017\356)\265\323\371C\360"
         NAS-IP-Address = 255.255.255.255
         NAS-Port-Id = "5"
modcall: entering group authorize
     users: Matched DEFAULT at 1
   modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
   rad_check_password:  Found auth-type System
auth: type "System"
auth: Failed to validate the user.
Sending Access-Reject of id 87 to 127.0.0.1:1446

But when i change name in rlm_sql.c's module_t structure to 'System' 
instead of 'SQL' everything works like i want. Why doesn't freeradius run 
the authentication module if it's not named 'System'?
Putting authenticate {ok} doesn't work either if it's not named 'System' in 
the .c source file.
Group authorize returns ok, but it never even try to run the modules in 
authenticate. Do i miss something here or what?

Running freeradius-0.2


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to