Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd July 2009, 21:01
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default [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?

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 24th July 2009, 09:17
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 .
--
Ozzy
Reply With Quote
  #3  
Old 24th July 2009, 15:20
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #4  
Old 25th July 2009, 09:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

What are the exact error messages?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 28th July 2009, 13:36
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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

Quote:
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:

Quote:
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 ;\
done
Is this the for-loop they talk about?

Last edited by GHz; 28th July 2009 at 13:42.
Reply With Quote
  #6  
Old 28th July 2009, 13:42
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Cheers
---
Ozzy
Reply With Quote
  #7  
Old 28th July 2009, 13:50
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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.

Quote:
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 <sgran@debian.org>
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...

Last edited by GHz; 28th July 2009 at 17:59.
Reply With Quote
  #8  
Old 30th July 2009, 07:04
awan awan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

U need libssl-dev not just libssl.
As for mysql check out the attached schema
Cheers
---
Ozzy
Attached Files
File Type: txt RADIUS-SQL.schema.txt (898 Bytes, 370 views)
Reply With Quote
  #9  
Old 30th July 2009, 12:06
GHz GHz is offline
Member
 
Join Date: Jul 2009
Location: The Netherlands
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default

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:

Quote:
/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?
Reply With Quote
  #10  
Old 4th August 2009, 13:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Is there maybe a freeradius-mysql package that needs to be installed?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius configure issue SaFi2266 HOWTO-Related Questions 5 24th July 2011 07:32
Configuring ISPConfig to work with Daloradius 4walters Installation/Configuration 2 29th April 2009 13:46
Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius herbie HOWTO-Related Questions 3 15th September 2008 05:37


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


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