I am running freeradius 1.0.4 + mysql 4.1.16. I have use the mysql
database schema from the freeradius tar ball. Everything seems to be<br>
setup correctly I can authenticate from flat text files but not from
any database usernames. Here is the output from my /usr/sbin/radiusd -X:<br>
<br>
Starting - reading configuration files ...<br>
reread_config: reading radiusd.conf<br>
Config: including file: /etc/raddb/clients.conf<br>
Config: including file: /etc/raddb/snmp.conf<br>
Config: including file: /etc/raddb/eap.conf<br>
Config: including file: /etc/raddb/sql.conf<br>
main: prefix = "/usr"<br>
main: localstatedir = "/var"<br>
main: logdir = "/var/log/radius"<br>
main: libdir = "/usr/lib"<br>
main: radacctdir = "/var/log/radius/radacct"<br>
main: hostname_lookups = no<br>
main: max_request_time = 30<br>
main: cleanup_delay = 5<br>
main: max_requests = 1024<br>
main: delete_blocked_requests = 0<br>
main: port = 1645<br>
main: allow_core_dumps = no<br>
main: log_stripped_names = yes<br>
main: log_file = "/var/log/radius/radius.log"<br>
main: log_auth = yes<br>
main: log_auth_badpass = yes<br>
main: log_auth_goodpass = yes<br>
main: pidfile = "/var/run/radiusd/radiusd.pid"<br>
main: user = "radiusd"<br>
main: group = "radiusd"<br>
main: usercollide = no<br>
main: lower_user = "before"<br>
main: lower_pass = "no"<br>
main: nospace_user = "before"<br>
main: nospace_pass = "before"<br>
main: checkrad = "/usr/sbin/checkrad"<br>
main: proxy_requests = no<br>
security: max_attributes = 200<br>
security: reject_delay = 1<br>
security: status_server = no<br>
main: debug_level = 0<br>
read_config_files: reading dictionary<br>
read_config_files: reading naslist<br>
Using deprecated naslist file. Support for this will go away soon.<br>
read_config_files: reading clients<br>
read_config_files: reading realms<br>
radiusd: entering modules setup<br>
Module: Library search path is /usr/lib<br>
Listening on authentication *:1645<br>
Listening on accounting *:1646<br>
Ready to process requests.<br>
rad_recv: Access-Request packet from host <a href="http://127.0.0.1:32784">127.0.0.1:32784</a>, id=125, length=58<br>
User-Name = "scooby"<br>
User-Password = "scooby"<br>
NAS-IP-Address = <a href="http://255.255.255.255">255.255.255.255</a><br>
NAS-Port = 10<br>
rad_lowerpair: User-Name now 'scooby'<br>
rad_rmspace_pair: User-Name now 'scooby'<br>
rad_rmspace_pair: User-Password now 'scooby'<br>
auth: No authenticate method (Auth-Type) configuration found for the request: Rejecting the user<br>
auth: Failed to validate the user.<br>
Login incorrect: [scooby/scooby] (from client localhost port 10)<br>
Delaying request 0 for 1 seconds<br>
Finished request 0<br>
Going to the next request<br>
--- Walking the entire request list ---<br>
Waking up in 1 seconds...<br>
--- Walking the entire request list ---<br>
Waking up in 1 seconds...<br>
--- Walking the entire request list ---<br>
Sending Access-Reject of id 125 to <a href="http://127.0.0.1:32784">127.0.0.1:32784</a><br>
Waking up in 4 seconds...<br>
--- Walking the entire request list ---<br>
Cleaning up request 0 ID 125 with timestamp 43c3dc9c<br>
Nothing to do. Sleeping until we see a request.<br>
<br>
Here is my syntax for radtest:<br>
radtest scooby scooby localhost:1645 10 secret<br>
<br>
My entries in the mysql table radcheck:<br>
mysql> select * from radcheck;<br>
+----+----------+---------------+----+----------+<br>
| id | UserName | Attribute | op | Value |<br>
+----+----------+---------------+----+----------+<br>
| 1 | scooby | User-Password | := | scooby |<br>
+----+----------+---------------+----+----------+<br><br>
Do I have my information specified wrong in my database or not enough
information in my database? I can not figure out why I get
authentications errors when running radtest. I am not sure where I
should specify the auth-type. Any help would be appreciated.<br>
<br>
Thanks,<br>
-- <br>Jonathan Carpenter<br>Linux System Administrator<br>Windows System Administrator<br><The Unix Geek>