Comments on Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius
Setting Up A FreeRadius Based AAA Server With MySQL & Management With Daloradius This tutorial explains how you can set up a FreeRadius (1.1.7) server with Wifi authentication and accounting in conjunction with MySQL & web management with Daloradius on Ubuntu 8.04 LTS Server Edition. This howto should work for a novice. Production deployment is also possible with minor tweaking. But as usual I do not guarantee anything & take no responsibilities if something goes wrong.
29 Comment(s)
Comments
Hi,
sorry to bother again...I tried other ways to install...but Daloradius didn't see the radius server on...
Anyway...I stick to the same problem.
When I run the dpkg-buildpackage it says:
Unmet dependencies: libgdbm-dev/ Build dependencies/coonflicts unsatisfied: aborting.
What shall I do?
Thanks
Hey Diego,
At the risk of inviting the wrath of falko, I responding to ur query again, since it more appropriately belongs to the discussion forums.
Anyway couple things that I need to remind the users of this how-to is that try to replicate the exact environment of the articles. i.e. Ubuntu 8.04 LTS (Server Edition), freeradius 1.7 .
The package libgdbm-dev is already being apt-get in the first step. It should automatically resolve the dependencies. See if u could check if it is still installed on not. if not re apt-get this package.
Furthermore if ur still having issues building the packages check out the link in references section.
One more thing the problems can be isolated by just skipping the package-building step & using the default freeradius packages from the server (which is without ssl support).
Good luck.
Note: if ur still having issues drop me an email or better yet open up a thread in the forums sections.
I also am getting an error like this:
root@ldap3:/freeradius-1.1.7# dpkg-buildpackage
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package freeradius
dpkg-buildpackage: source version 1.1.7-1build4
dpkg-buildpackage: source changed by Chuck Short <[email protected]>
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: warning: can't parse dependency libsnmp-dev libssl-dev
dpkg-checkbuilddeps: error: error occurred while parsing Build-Depends
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
only libsnmp-dev and libssl-dev are quite clearly installed. I purged and reinstalled them to be sure, and rebooted. tried with -d, but still fails with the same problem later. this openssl license crap is beginning to seriously frustrate me...
Yes, this openssl crap has been source of frustration for lot many others.
Anyway may I inquire what distribution ur using cuz Im beginning to think that ppl dont realize the difference between ubuntu LTS server & ubuntu desktop thingy.
Im assuming (a big assumption I know) that apart from support duration and all, the server distro is a bit conservate in nature. i.e. not bleeding edge, not using the latest packages, i.e one step back from the latest packages due to issues related to stability/security etc..
If this is not the issue then u might want to check the references section which has the link to the package building of freeradius. If there is any mistake do let me know, so that I can fix it over here.
And if ur a bit of a faint heart then I can alway email u the packages that I've built.
let me know. Cheers
--
Oz
I've installed freeradius-2.1.0 on Ubuntu-8.10 by this tutorial. But some error occured:
root@p2p-PC:~/freeradius-2.1.0+dfsg# dpkg-buildpackage -rfakeroot -d
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stdio.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_attr_rewrite (/root/freeradius-2.1.0+dfsg/src/modules/rlm_attr_rewrite)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for regex.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_checkval (/root/freeradius-2.1.0+dfsg/src/modules/rlm_checkval)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... (cached) gcc -E
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_counter (/root/freeradius-2.1.0+dfsg/src/modules/rlm_counter)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
checking to see GDBM_SYNC status... checking for egrep... grep -E
needs it.
checking for gdbm_fdesc... yes
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_dbm (/root/freeradius-2.1.0+dfsg/src/modules/rlm_dbm)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for ndbm.h... no
checking for gdbm/ndbm.h... no
checking for gdbm-ndbm.h... yes
checking for dbm in default lib... no
checking for dbm_open in -lndbm... no
checking for dbm_open in -lgdbm... no
checking for dbm_open in -lgdbm_compat... yes
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_eap (/root/freeradius-2.1.0+dfsg/src/modules/rlm_eap)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in ./types/rlm_eap_ikev2
configure: running /bin/bash './configure' --prefix=/usr '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' '--cache-file=../../../config.cache' '--srcdir=.' --cache-file=../../../../../config.cache --srcdir=.
configure: loading cache ../../../../../config.cache
*** module rlm_eap_ikev2 is disabled.
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in ./types/rlm_eap_ttls
configure: running /bin/bash './configure' --prefix=/usr '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' '--cache-file=../../../config.cache' '--srcdir=.' --cache-file=../../../../../config.cache --srcdir=.
configure: loading cache ../../../../../config.cache
checking for OpenSSL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in ./types/rlm_eap_peap
configure: running /bin/bash './configure' --prefix=/usr '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' '--cache-file=../../../config.cache' '--srcdir=.' --cache-file=../../../../../config.cache --srcdir=.
configure: loading cache ../../../../../config.cache
checking for OpenSSL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
configure: configuring in ./types/rlm_eap_tnc
configure: running /bin/bash './configure' --prefix=/usr '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' '--cache-file=../../../config.cache' '--srcdir=.' --cache-file=../../../../../config.cache --srcdir=.
configure: loading cache ../../../../../config.cache
*** module rlm_eap_tnc is disabled.
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in ./types/rlm_eap_tls
configure: running /bin/bash './configure' --prefix=/usr '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' '--cache-file=../../../config.cache' '--srcdir=.' --cache-file=../../../../../config.cache --srcdir=.
configure: loading cache ../../../../../config.cache
checking for OpenSSL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_ippool (/root/freeradius-2.1.0+dfsg/src/modules/rlm_ippool)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
checking to see GDBM_SYNC status... checking for egrep... (cached) grep -E
needs it.
checking for gdbm_fdesc... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_krb5 (/root/freeradius-2.1.0+dfsg/src/modules/rlm_krb5)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for krb5.h... yes
checking for krb5_encrypt_data in -lk5crypto... yes
checking for set_com_err_hook in -lcom_err... yes
checking for krb5_init_context in -lkrb5... yes
configure: updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_ldap (/root/freeradius-2.1.0+dfsg/src/modules/rlm_ldap)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for pthread_create in -lpthread... (cached) yes
checking for ldap_init in -lldap_r... yes
checking for ldap.h... yes
checking for ldap_start_tls_s... yes
checking for ldap_initialize... yes
checking for ldap_int_tls_config... yes
configure: updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_otp (/root/freeradius-2.1.0+dfsg/src/modules/rlm_otp)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
*** module rlm_otp is disabled.
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src/modules/rlm_pam (/root/freeradius-2.1.0+dfsg/src/modules/rlm_pam)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for dlopen in -ldl... (cached) yes
checking for pam_start in -lpam... yes
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking security/pam_appl.h usability... yes
checking security/pam_appl.h presence... yes
checking for security/pam_appl.h... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_perl (/root/freeradius-2.1.0+dfsg/src/modules/rlm_perl)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for perl... yes
checking for EXTERN.h... yes
checking for perl.h... yes
configure: updating cache ../../../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in src/modules/rlm_python (/root/freeradius-2.1.0+dfsg/src/modules/rlm_python)
configure: running /bin/bash ./configure '--prefix=/usr' '--build' 'i486-linux-gnu' '--exec-prefix=/usr' '--mandir=/usr/share/man' '--sysconfdir=/etc' '--libdir=/usr/lib/freeradius' '--datadir=/usr/share' '--localstatedir=/var' '--with-raddbdir=/etc/freeradius' '--with-logdir=/var/log/freeradius' '--enable-ltdl-install=no' '--enable-strict-dependencies' '--with-large-files' '--with-udpfromto' '--with-edir' '--enable-developer' '--with-rlm_eap_tls' '--with-rlm_eap_ttls' '--with-rlm_eap_peap' '--without-rlm_eap_tnc' '--without-rlm_otp' '--with-rlm_sql_postgresql_lib_dir=/usr/lib' '--with-rlm_sql_postgresql_include_dir=/usr/include/postgresql' '--with-openssl' '--without-rlm_eap_ikev2' '--without-rlm_sql_oracle' '--without-rlm_sql_unixodbc' '--with-system-libtool' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'FFLAGS=-g -O2' '--enable-ltdl-install=no' --cache-file=../../../config.cache --srcdir=.
configure: loading cache ../../../config.cache
checking for gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for python2.3... no
checking for python2.2... no
checking for python2.1... no
checking for python1.5... no
checking for python... python
checking for Python.h... no
checking for Py_Initialize in -lpython2.5... no
configure: error: set --without-rlm_python to disable it explicitly.
configure: error: ./configure failed for src/modules/rlm_python
make: *** [config.status] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
what i do now? HELP!!!
Try tu install python if you don't have already do
u forget to put the "," after the libsnmp-devit show like this " libsnmp-dev, libssl-dev"
The Apache process is restarted with "/etc/init.d/apache2 restart" on Ubuntu.
And reading the final note, I now know that it wouldn't have been necessary to build from source, since the only additional things these instructions enable in the source setup are not even used in this howto. It would have been nice to mention this at the beginning...
PS: While enabling EAP and TLS flags before compiling, you also need to enable openssl support in debian/rules, otherwise the compile process will fail.
Thanx. Fixed the httpd thing & also added the openssl related stuff.
But the text regarding the need to compile the package with openssl or not, was present at the begining of the article. I just highlighted it now for the negligents (ref: centos thing ;)
Good luck
Hi,
I tried
dpkg-buildpackage -rfakeroot
but it says that it cannot perform it...As you say in the tutorial you may need some more apt-get but what??
Thanks
Hey diego,
This process was carried out on ubuntu 8.04 LTS version with minimal/base install. From there on apt-getting was done. Dependencies shouldn't be a problem. just hit "yes" whatever/whenever dependencies are prompted. Trying to stick with the theme/manifesto of howtoforge.com, this tutorial should work for even the dummies.
Make sure u have the exact same setup environment. Deviations are possible but only if u know what ur doing.
For further information on dpkg-buildpackage check out this link
http://ubuntuforums.org/showthread.php?t=686131 OR
or
man fakeroot
Let me know if u find out any errors.
Good luck
--
Why did my first comment disappear? There I had listed most corrections, like missing packages, incorrect package names, invalid packages, config modifications etc.
I suppose this has never actually been done on Hardy? Too many things are wrong...
Do you mean this one?
You posted it under a different tutorial.
Yes, that's the one, sorry. Must have gotten to the wrong place when I wrote it the second time. However, the comment still applies. This tutorial here can't work, there are too many problems. So for simplicity, I paste the comment in here:
###
I can't remember all my modifications, so good luck to everyone trying this, but some hints anyway:
- Packages
- more need to be installed, specifically build-essential, fakeroot, mysql-client-5.0, mysql-server.These are not installed by default on Hardy server.
- libmysqlclient-dev has no installation candidate.
- Instead of "apt-get install php php-mysql php-pear php-gd php-pear-DB" it should be "apt-get install php5 php5-mysql php-pear php5-gd php5-db".
- MySQL
- Instead of "use database radius" it should be "use radius".
- Freeradius
- In /etc/freeradius/users, comment out the line "DEFAULT Auth-Type = System" and the following one if you do not plan to go mad.
- misc
- When copying daloradius to /var/www, omit the trailing slash! It should be "cp -R daloradius-0.9-7 /var/www".
hi,
Not php5-db. must be php-db. If php-db not install. Cant open opendb.php.
thanx
See if this does the trick for u
apt-get install build-essential -y
See if the iptables are flushed or not ?
--
Oz
installed but testing Access-Reject
root@Ubuntu804:/var/log/freeradius# more radius.log
Mon Mar 23 14:23:44 2009 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Mar 23 14:23:44 2009 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Mar 23 14:23:44 2009 : Info: Ready to process requests.
Mon Mar 23 15:12:18 2009 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Mar 23 15:12:18 2009 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Mar 23 15:12:19 2009 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Mon Mar 23 15:12:19 2009 : Info: rlm_sql (sql): Attempting to connect to root@localhost:/radius
Mon Mar 23 15:12:19 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0
Mon Mar 23 15:12:19 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1
Mon Mar 23 15:12:19 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2
Mon Mar 23 15:12:19 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3
Mon Mar 23 15:12:19 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4
Mon Mar 23 15:12:19 2009 : Info: Ready to process requests.
Mon Mar 23 15:14:40 2009 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Mar 23 15:14:40 2009 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Mar 23 15:14:40 2009 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Mon Mar 23 15:14:40 2009 : Info: rlm_sql (sql): Attempting to connect to root@localhost:/radius
Mon Mar 23 15:14:40 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0
Mon Mar 23 15:14:40 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1
Mon Mar 23 15:14:40 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2
Mon Mar 23 15:14:40 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3
Mon Mar 23 15:14:40 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4
Mon Mar 23 15:14:41 2009 : Info: Ready to process requests.
Mon Mar 23 15:23:29 2009 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Mar 23 15:23:29 2009 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Mar 23 15:23:29 2009 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Mon Mar 23 15:23:29 2009 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius
Mon Mar 23 15:23:29 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0
Mon Mar 23 15:23:29 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1
Mon Mar 23 15:23:29 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2
Mon Mar 23 15:23:29 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3
Mon Mar 23 15:23:29 2009 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4
Mon Mar 23 15:23:29 2009 : Info: Ready to process requests.
root@Ubuntu804:/var/log/freeradius# radtest sqltest testpwd localhost 1812 testing123
Sending Access-Request of id 50 to 127.0.0.1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
Re-sending Access-Request of id 50 to 127.0.0.1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=50, length=20
root@Ubuntu804:/var/log/freeradius#
root@Ubuntu804:/var/log/freeradius# mysql -u radius -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use radius;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select * from radcheck;
+----+----------+-----------+----+---------+
| id | UserName | Attribute | op | Value |
+----+----------+-----------+----+---------+
| 1 | sqltest | password | == | testpwd |
+----+----------+-----------+----+---------+
1 row in set (0.00 sec)
mysql>
mysql> select * from radcheck;
+----+----------+-----------+----+---------+
| id | UserName | Attribute | op | Value |
+----+----------+-----------+----+---------+
| 1 | sqltest | password | == | testpwd |
+----+----------+-----------+----+---------+
change attribute
Database changed
mysql> select * from radcheck;
+----+------------+---------------------+----+---------+
| id | UserName | Attribute | op | Value |
+----+------------+---------------------+----+---------+
| 1 | sqltest | Cleartext-Password | := | testpwd |
+----+------------+---------------------+----+---------+
and
root@Ubuntu804:/var/log/freeradius# radtest sqltest testpwd localhost 1812 testing123
Sending Access-Request of id 50 to 127.0.0.1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
Re-sending Access-Request of id 50 to 127.0.0.1 port 1812
User-Name = "sqltest"
User-Password = "testpwd"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
rad_recv: Access-Acept packet from host 127.0.0.1:1812, id=50, length=20
hi I have the same problem, but with your solve, i can not make it work:
[root@appliance src]# more /var/log/radius/radius.log
Wed Jul 28 18:50:30 2010 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Wed Jul 28 18:50:30 2010 : Info: Ready to process requests.
mysql> INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('1234', 'Cleartext-Password', '1234');
Query OK, 1 row affected (0.00 sec)
mysql> select * from radcheck;
+----+----------+--------------------+----+---------+
| id | UserName | Attribute | op | Value |
+----+----------+--------------------+----+---------+
| 1 | sqltest | Password | == | testpwd |
| 2 | 1234 | Cleartext-Password | == | 1234 |
+----+----------+--------------------+----+---------+
2 rows in set (0.00 sec)
[root@appliance src]# radtest 1234 1234 localhost 1812 testing123
Sending Access-Request of id 214 to 127.0.0.1 port 1812
User-Name = "1234"
User-Password = "1234"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=214, length=20
[root@appliance src]# radtest 1234 1234 127.0.0.1 1812 testing123
Sending Access-Request of id 218 to 127.0.0.1 port 1812
User-Name = "1234"
User-Password = "1234"
NAS-IP-Address = 255.255.255.255
NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=218, length=20
please help me to solve it
thanks and regards.
Thanh Truong
I just ran into this. Say your in ~/freeradiustmp/freeradius-2.0.4+dfsg/ Copy control and rules from the debian directory back to ~/freeradiustmp cd to ~/freeradiustmp rm -rf freeradius-2.0.4+dfsg apt-get source freeradius copy control and rules back into freeradius-2.0.4+dfsg/debian and say yes to overwrite the files. Now edit the debian/rules copy and locate the line: --with-rlm_otp Right below this line add: --without-rlm_python Now run dpkg-buildpackage -rfakeroot as you did before and it should work. I'd avoid removing freeradius and pulling it down again if I knew how to get dpkg-buildpackage/debuild to regenerate anew but don't know how to do that just yet.
Try recompiling after install fakeroot
# sudo aptitude install fakeroot
cheers
Oz
Error on running dpkg-buildpackage -rfakeroot
root@ubuntu8:~/freeradius-1.1.7# ls
acconfig.h config.h.in configure.in debian INSTALL libtool.m4 ltmain.sh man raddb scripts suse
aclocal.m4 config.sub COPYRIGHT dialup_admin install-sh LICENSE Makefile mibs README share todo
config.guess configure CREDITS doc libltdl ltconfig Make.inc.in missing redhat src
root@ubuntu8:~/freeradius-1.1.7# dpkg-buildpackage -rfakeroot
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package freeradius
dpkg-buildpackage: source version 1.1.7-1build4
dpkg-buildpackage: source changed by Chuck Short <[email protected]>
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
Can't exec "fakeroot": No such file or directory at /usr/bin/dpkg-buildpackage line 477.
dpkg-buildpackage: failure: fakeroot debian/rules clean failed with unknown exit code -1
root@ubuntu8:~/freeradius-1.1.7#
Your welcome.
Comments such as this do make it worth while writing the howto.
Have a blast with FR. You make my day.
--
Ozzy
(falko does deserve a credit as well)
I was assigned a project in UNIX class of getting a RADIUS server working for one of the colleges at U of H. Have scoured the internet for tips and tricks on how to do so and have found a few pages that hit in the major points but your HowTo blows them out of the water.
I'm an old school Windows guy and have just barely dabbled in *nix so my understanding of building packages and installing libraries is limited. Unfortunately those are the steps that all the other HowTos overlook. Your explanations and code snippets did wonders and for someone who had to just figure out how to logon to a Linux console, I had Ubuntu 8.04 installed with FreeRadius running and responding to requests in a little over an hour.
Great Job.
Thank you very much!!!!
It worked almost smoothly.
At first I couldn't get past the test connection that kept failing.
I tryed to commentet EVERY method of authentication apart from sql (the only one I actually need) in /etc/freeradius/radiusd.conf and it went fine....
Luca
Great how to!!
Completed everything as stated, and radtest is working fine. Now, how to connect to this server from another Windows / Ubuntu machine?
If there is error when you try to launch freeRADIUS with sudo freeradius -X
/etc/freeradius/sql.conf[22]: Instantiation failed for module "sql"
Then You have altered your mySQL tables from daloRADIUS but with wrong version.
For freerad Version 2.x.x use mysql -u root -p -h localhost radiusdb < fr2-mysql-daloradius-and-freeradius.sql
As for freerad Version 1.x.x use mysql -u root -p -h localhost radiusdb < fr1-mysql-daloradius-and-freeradius.sql
If you have just altered the Version1 or 2 sql schema to work with the other version your dalioRADIUS will not work and will not give error except Premission Denied when u click side menu items.
To fix it drop all the tables and import from /var/www/dalioradius.z-.x.c/contrib/db/your-version-and-schema.sql
hallo. please help me
why = radclient: no response from server for ID 124 socket 3
thank you