Hello. I can get FreeRadius to work fine with using Unix users file, but
when I try to setup MySQL authentication, and run "radtest," there is no
response from the radiusd server. When I go back to using just the Unix
user/pass, it works fine. Examples:
when I add these lines to radiusd.conf:
authorize {
preprocess
# counter
# attr_filter
suffix
# added SQL below
sql
files
}
authenticate {
pam
unix
# added SQL below
sql
}
accounting {
acct_unique
detail
counter
unix
# added SQL below
sql
radutmp
sradutmp
}
then, stop and restart the radiusd, and send a request, the server never
responds:
Sending Access-Request of id 20 to 127.0.0.1
User-Name = "steves"
Password = "LxBa^\035'\217?\201\316Q\313\021\215\201"
NAS-IP-Address = localhost.localdomain
NAS-Port-Id = "localhost"
radclient: no response from server
If I comment those "sql" lines out, then stop and restart the radiusd
server, I get a response from the server just fine:
[root@localhost internetsubmit]# /etc/init.d/radiusd stop
done. ] RADIUSD server: [ OK ]
You have new mail in /var/spool/mail/internetsubmit
[root@localhost internetsubmit]# /etc/init.d/radiusd start
done.ing RADIUSD server: [ OK ]
[root@localhost internetsubmit]# radtest steves testing123 localhost
localhost
testing123
Sending Access-Request of id 229 to 127.0.0.1:1812
User-Name = "steves"
Password = "Bw\2571\216\210W\303\267}i\027\317\233F\246"
NAS-IP-Address = localhost.localdomain
NAS-Port-Id = "localhost"
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=229, length=20
---> Could this be a configure problem when I configured MySQL support? I
remember having trouble finding the "includes" directory for MySQL. However,
the libraries, and actual mysql directory were correct (I know that much).
Any one else have any ideas or suggestions? If I should reconfigure and find
the "includes" directory for MySQL, what mysql includes do I look for? I
couldn't find any that were applicable to FreeRadius.
Thanks!
Robert Abbate
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html