FreeRadius & MySql

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Locked
disciplefk
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 07, 2011 2:13 pm

FreeRadius & MySql

Post by disciplefk » Tue Mar 01, 2011 3:48 pm

Hi There,

I have a FreeRadius server that connects to a mysql database populated with users. I having trouble finding out how to authenticate users from information saved in the database. All goes well (I think) until the authentication:

rlm_sql (sql): Released sql socket id: 3
modcall[authorize]: module "sql" returns ok for request 0
modcall: leaving group authorize (returns ok) for request 0
rad_check_password: Found Auth-Type System
auth: type "System"
Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_unix: [disciplefk]: invalid password
modcall[authenticate]: module "unix" returns reject for request 0
modcall: leaving group authenticate (returns reject) for request 0
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0

Any ideas on what I need to do?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: FreeRadius & MySql

Post by janjust » Tue Mar 01, 2011 3:50 pm

err, how about posting this message to a freeradius/mysql forum? if the authentication via freeradius fails there's nothing that openvpn can do about it.

disciplefk
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 07, 2011 2:13 pm

Re: FreeRadius & MySql

Post by disciplefk » Tue Mar 01, 2011 4:15 pm

Yeah i know, I could not find a dedicated freeradius forum. And it would make as much sense to post it in mysql as here.

disciplefk
OpenVpn Newbie
Posts: 5
Joined: Mon Feb 07, 2011 2:13 pm

Re: FreeRadius & MySql

Post by disciplefk » Tue Mar 01, 2011 4:22 pm

Nevermind, I figured it out. I knew the problem was Auth-Type needed to be defined, but I did not know as what and where. Turns out is is in the users files and needs to be set as Local. Just in case anyone else needs this info =) Thanks anyway!

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Re: FreeRadius & MySql

Post by Douglas » Wed Mar 02, 2011 1:08 am

Locked...

Locked