"radiusd -X" read my sql database but not "freeradius -X"
Hello everybody, as part of my studies I try to set up a radius server with a mysql database. I have a wifi access point defined as a client (172.16.140.87) in a NAS table inside my radius database. Everything works perfectly when i test with the tool "radiusd -X" ! But when i use the tool "freeradius -X" it does not connect to the database, so it will not read the client and therefore I 'have a great "Ignoring request to authentication address * port 1812 from 172.16.140.87 port 59129 unknown customer." when i test. What the differences between this 2 tools ? What can i do for solve my problem because by default the daemon is freeradius and it ignores my requests... Greetings -- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Op 18 jul 2011, om 11:37 heeft schnoocats het volgende geschreven:
Hello everybody, as part of my studies I try to set up a radius server with a mysql database. I have a wifi access point defined as a client (172.16.140.87) in a NAS table inside my radius database.
Everything works perfectly when i test with the tool "radiusd -X" ! But when i use the tool "freeradius -X" it does not connect to the database, so it will not read the client and therefore I 'have a great "Ignoring request to authentication address * port 1812 from 172.16.140.87 port 59129 unknown customer." when i test.
What the differences between this 2 tools ? What can i do for solve my problem because by default the daemon is freeradius and it ignores my requests...
I think freeradius doesn't read the config files that radiusd does read. Also, someone correct me if I'm wrong, but it's kind of weird to have the two commands available. Don't you have multiple versions installed or something like that?
Greetings
-- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mon, Jul 18, 2011 at 4:37 PM, schnoocats <schnoocats@laposte.net> wrote:
Hello everybody, as part of my studies I try to set up a radius server with a mysql database. I have a wifi access point defined as a client (172.16.140.87) in a NAS table inside my radius database.
Everything works perfectly when i test with the tool "radiusd -X" !
This is most likely freeradius installation that you installed manually from source ...
But when i use the tool "freeradius -X" it does not connect to the database,
... while this is the one that comes with Debian/Ubuntu as a package.
so it will not read the client and therefore I 'have a great "Ignoring request to authentication address * port 1812 from 172.16.140.87 port 59129 unknown customer." when i test.
You mixed up the two installations. Don't. Either compile it manually, or use the package. Don't use both.
What the differences between this 2 tools ? What can i do for solve my problem because by default the daemon is freeradius and it ignores my requests...
Edit the correct config files for the one you want to use. By default, Debian/Ubuntu's freeradius configuration directory is on /etc/freeradius -- Fajar
On Jul 18, 2011, at 11:37 AM, schnoocats wrote:
Hello everybody, as part of my studies I try to set up a radius server with a mysql database. I have a wifi access point defined as a client (172.16.140.87) in a NAS table inside my radius database.
Everything works perfectly when i test with the tool "radiusd -X" ! But when i use the tool "freeradius -X" it does not connect to the database, so it will not read the client and therefore I 'have a great "Ignoring request to authentication address * port 1812 from 172.16.140.87 port 59129 unknown customer." when i test.
What the differences between this 2 tools ? What can i do for solve my problem because by default the daemon is freeradius and it ignores my requests...
The ubuntu package renames radiusd to freeradius, so it will be using the configuration installed with the package and not your configuration. If you compiled from source you'll get the original radiusd binary. The easiest way is to: sudo mv /usr/sbin/freeradius /usr/sbin/freeradius.pkg sudo ln -s <path to radiusd> /usr/sbin/freeradius Then all the startup scripts will execute the version of the RADIUS daemon you built. -Arran Arran Cudbard-Bell a.cudbardb@freeradius.org RADIUS - Half the complexity of Diameter
Thank you, you're right !!! I have two installations of freeradius unintentionally ... Actually I'm under ubuntu server 10.04, I have compiled from freeradius-server-2.1.11.tar.gz I guess at one point I had to install the package freeradius in ubuntu (I suspect the command "apt-get install freeradius-mysql", it was perhaps not necessary at once ...) I tried the commands of Arran: /sudo mv /usr/sbin/freeradius /usr/sbin/freeradius.pkg sudo ln-s <path to radiusd> /usr/sbin/freeradius/ the freeradius symbolic link is well created to /usr/local/sbin/radiusd, it starts if I run it manually but it does not start at boot ... I think there is a script to add or modify in the /etc/init.d/ -- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com.
On Mon, Jul 18, 2011 at 6:46 PM, schnoocats <schnoocats@laposte.net> wrote:
Thank you, you're right !!! I have two installations of freeradius unintentionally ...
Actually I'm under ubuntu server 10.04, I have compiled from freeradius-server-2.1.11.tar.gz I guess at one point I had to install the package freeradius in ubuntu (I suspect the command "apt-get install freeradius-mysql", it was perhaps not necessary at once ...)
If you're familiar with creating your own package using dpkg-buildpackage, you can just build Ubuntu package from the source tarball. See http://wiki.freeradius.org/Build#Building+Debian+packages . Alternatively, if you simply want to use 2.1.11 but don't have the required skill to maintain manual installation, try my ppa: https://launchpad.net/~freeradius/+archive/stable -- Fajar
Thanks Fajar for your proposal (PPA) I've just 2 beginner's questions: What does it mean "dfsg" ? What does it mean "git" ? -- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Hi,
Thanks Fajar for your proposal (PPA)
I've just 2 beginner's questions: What does it mean "dfsg" ? What does it mean "git" ?
DFSG = Debian Free Software Guidelines part of the DEBIAN social contract GIT = a revision control system (a way of storing files in a project so that multiple people can work on them at the same time...get the latest code etc) DFSG is why DEBIAN packages have bits missing ;-) GIT = the best way to get latest FreeRADIUS code alan
On Mon, Jul 18, 2011 at 7:57 PM, schnoocats <schnoocats@laposte.net> wrote:
Thanks Fajar for your proposal (PPA)
PPA is not proposal. It's "personal package archives". See http://blog.launchpad.net/ppa/personal-package-archives-for-everyone
I've just 2 beginner's questions: What does it mean "dfsg" ?
The best explanation that I can find actually comes from a blog which is no longer available (at least I can't reach it now). Google's cache: http://goo.gl/QUYVg In the case of freeradius, AFAIK this is to note that Debian's official package removes some files from the upstream source (namely, the debian/ directory) and replace it with their own. From debian/changelog, the dfsg string was added starting 2.0.4+dfsg-1. #=========================================================== freeradius (2.0.4+dfsg-1) unstable; urgency=low * Ok, actually remove all the cruft in debian/ shipped by upstream. This means repacking the tarball and all that, but it also means dpkg-source won't get the chance to ignore removed files, resulting in files reappearing, but not locally (closes: #481406) * Also remove config.{cache,log} in clean target - damn you gitignore -- Stephen Gran <sgran@debian.org> Mon, 19 May 2008 03:55:55 +0100 #=========================================================== My ppa is based on Ubuntu's source (which in turn is based on Debian's source), so I keep the dfsg string intact.
What does it mean "git" ?
Git is the version control software used to manage freeradius source. The public git repository for freeradius is available at https://github.com/alandekok/freeradius-server When you see "git" as part of package version, that means the package contains some addition that are present in a particular git commit, but not in the official "released" version. In my case, 2.1.11 has some bugs (e.g. detail file, HUP) which was fixed in git, but not yet released as another version, so I use the commit which already has the fix. So in short: - if you want "official" freeradius release, download the source from freeradius.org (and optionally build a Debian/Ubuntu package from that) - if you want ubuntu-supported freeradius package, use the one in the official repository (latest is 2.1.10) - if you want to use what I currently use for testing purposes, use my ppa -- Fajar
I solved my problem with my current install. In /etc/init.d/freeradius file i change 2 lines : PROGRAM="/usr/local/sbin/radiusd" export PATH="${PATH:+$PATH:}/usr/sbin:/sbin:/usr/local/sbin" Now the radiusd daemon start at launch (with my working configuration) Thank you everybody. -- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com.
What about if you compile using the Synaptic Package Manager? -- View this message in context: http://freeradius.1045715.n5.nabble.com/radiusd-X-read-my-sql-database-but-n... Sent from the FreeRadius - User mailing list archive at Nabble.com.
participants (6)
-
Alan Buxey -
Arran Cudbard-Bell -
Fajar A. Nugraha -
schnoocats -
Serge van Namen -
sgilmour