HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   HOWTO-Related Questions (
-   -   [debian] Freeradius with MySQL and daloradius ? (

GHz 23rd July 2009 22:01

[debian] Freeradius with MySQL and daloradius ?
Hi all,

I saw this howto: Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius . This howto however, is for Ubuntu. I'm looking for this howto but then for Debian 5.0. Could someone please explain to me what I need to do to make it work on Debian?


awan 24th July 2009 10:17

Yes its shouldnt be a problem as ubuntu is based on the debianīs testing version, I think its SID these days.
go ahead try it and cough up a nice howto .

GHz 24th July 2009 16:20

Getting stuck when wanting to issue this command: 'dpkg-buildpackage -rfakeroot', it returns errors. I tried apt-get install fakeroot, but that didnt solve it. Any ideas?

falko 25th July 2009 10:18

What are the exact error messages?

GHz 28th July 2009 14:36

The first strange thing is, that my source package contains this:


freeradius-2.0.4+dfsg freeradius_2.0.4+dfsg-6.dsc
freeradius_2.0.4+dfsg-6.diff.gz freeradius_2.0.4+dfsg.orig.tar.gz
Which one do I need?

If I choose freeradius-2.0.4+dfsg and I run vi debian/rules my for-loop looks also different:


dh_makeshlibs -a -n
for pkg in ${pkgs} ; do \
if dh_shlibdeps -p $$pkg -- -O 2>/dev/null | grep -q libssl; then \
echo "$$pkg links to openssl" ;\
exit 1 ;\
fi ;\
Is this the for-loop they talk about?

awan 28th July 2009 14:42

U need all of those packages. Check out the link that I had pasted (regarding compiling..some debian link I think. in reference i.e.). Itīll develop the concept.

GHz 28th July 2009 14:50

I continued compiling but again I get an error, but I am sure I have all the packages (using apt-get), also python-dev and ilbssl.


dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set LDFLAGS to default value:
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: source package freeradius
dpkg-buildpackage: source version 2.0.4+dfsg-6
dpkg-buildpackage: source changed by Stephen Gran <>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: warning: can't parse dependency python-dev libssl-dev
dpkg-checkbuilddeps: error: error occurred while parsing Build-Depends/Build-Dep ends-Indep)
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)

With the howto at the end of the howto that I followed it returns the same errors...

Edit: I also don't have an example scheme for MYSQL in the freeradius package...

awan 30th July 2009 08:04

1 Attachment(s)
U need libssl-dev not just libssl.
As for mysql check out the attached schema

GHz 30th July 2009 13:06

Thanks for the information about the schemes, I imported the SQL one, but again, I ran into some problems. In my radiusd.conf, there is no authorize section and also no accounting section, so I just pasted them under the last section. When I start freeradius in debugmode, it returns the following:


/etc/freeradius/radiusd.conf[750]: Failed to find module "sql".
/etc/freeradius/radiusd.conf[744]: Errors parsing authorize section.
Errors initializing modules
What can be done to solve this?

falko 4th August 2009 14:40

Is there maybe a freeradius-mysql package that needs to be installed?

All times are GMT +2. The time now is 17:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.