configuring Freeradius server + accounting + IP address
Seferovic Edvin
edvin.seferovic at kolp.at
Thu Jun 1 08:09:06 CEST 2006
Hello !
>Hi All,
>
>I am newly joined to this group. I have started working on radius.
>
>I am facing some problems in configuring the free radius for accounting
>purpose and to get the IP address of MS.
What do you mean by "IP address of MS" ? accounting setup is pretty well
described in freeRadius documentation!
Regards,
Edvin
-----Original Message-----
From:
freeradius-users-bounces+basavaraja.pv=masconit.com at lists.freeradius.org
[mailto:freeradius-users-bounces+basavaraja.pv=masconit.com at lists.freera
dius.org]On Behalf Of freeradius-users-request at lists.freeradius.org
Sent: Wednesday, May 31, 2006 8:23 PM
To: freeradius-users at lists.freeradius.org
Subject: Freeradius-Users Digest, Vol 13, Issue 145
Send Freeradius-Users mailing list submissions to
freeradius-users at lists.freeradius.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freeradius.org/mailman/listinfo/freeradius-users
or, via email, send a message with subject or body 'help' to
freeradius-users-request at lists.freeradius.org
You can reach the person managing the list at
freeradius-users-owner at lists.freeradius.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Freeradius-Users digest..."
Today's Topics:
1. RE: Session-Octets-Limits (Seferovic Edvin)
2. Re: Session-Octets-Limits (Mordor Networks)
3. 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" - "ld: skipping
incompatible" (Alan)
4. Re: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" - "ld:
skippingincompatible" (Stefan Winter)
5. RE: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" -
"ld:skippingincompatible" (Alan)
----------------------------------------------------------------------
Message: 1
Date: Wed, 31 May 2006 12:16:43 +0200
From: "Seferovic Edvin" <edvin.seferovic at kolp.at>
Subject: RE: Session-Octets-Limits
To: "'FreeRadius users mailing list'"
<freeradius-users at lists.freeradius.org>
Message-ID: <200605311016.k4VAGqgH004541 at mxdrop18.xs4all.nl>
Content-Type: text/plain; charset="us-ascii"
>Its working and the user disconnect when reachs the limit but now if the
>user disconnect and reconnect it will all start over is there a way to lock
>the account?
>
>so that the user wont be able to connect again?
YES, by using sqlcounter module ! This module should count the traffic usage
before user is authorized to connect.
Regards,
Edvin
------------------------------
Message: 2
Date: Wed, 31 May 2006 14:01:28 +0300
From: "Mordor Networks" <mordor.networks at gmail.com>
Subject: Re: Session-Octets-Limits
To: edvin.seferovic at kolp.at, "FreeRadius users mailing list"
<freeradius-users at lists.freeradius.org>
Message-ID:
<f21372cd0605310401g3a2594bcr5efc0297495430ce at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Do i have to patch the sqlcounter module so that it can be used for
counting traffic?
I have the default sqlcounter in my radius.conf sqlcounter Dailycounter and
sqlcounter monthlycounter/
On 5/31/06, Seferovic Edvin <edvin.seferovic at kolp.at> wrote:
>
> >Its working and the user disconnect when reachs the limit but now if the
> >user disconnect and reconnect it will all start over is there a way to
> lock
> >the account?
> >
> >so that the user wont be able to connect again?
>
> YES, by using sqlcounter module ! This module should count the traffic
> usage
> before user is authorized to connect.
>
> Regards,
> Edvin
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
https://list.xs4all.nl/pipermail/freeradius-users/attachments/20060531/08a09
0b4/attachment-0001.html
------------------------------
Message: 3
Date: Wed, 31 May 2006 09:49:19 -0400
From: "Alan" <abaker at cliquecom.com>
Subject: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" - "ld: skipping
incompatible"
To: <freeradius-users at lists.freeradius.org>
Message-ID: <ISDMAIL1CVxqY4tbqBT00000f0f at isdmail1.inovsys.com>
Content-Type: text/plain; charset="US-ASCII"
When I compile the latest stable FreeRadius build version 1.1.2. I came
across a few problems. I noticed the eap library file has a "T" appended to
the end of it (rlm_eap-1.1.2.soT) and some "ld" warnings after running
"make". Please advise.
~Alan
OS: Red Hat Enterprise v.3 AMD64
---
Make ld warnings:
sql_mysql.c: In function `sql_error':
sql_mysql.c:333: warning: return discards qualifiers from pointer target
type
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for
-lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching for
-lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for
-lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.a when searching for
-lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
radius_snmp.c: In function `radServReset':
radius_snmp.c:263: warning: passing arg 2 of `asn_parse_int' from
incompatible pointer type
smux.c: In function `smux_getresp_send':
smux.c:257: warning: passing arg 2 of `asn_build_sequence' from incompatible
pointer type
smux.c:262: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:268: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:273: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:279: warning: passing arg 2 of `asn_build_sequence' from incompatible
pointer type
smux.c:283: warning: passing arg 6 of `snmp_build_var_op' discards
qualifiers from pointer target type
smux.c:283: warning: passing arg 7 of `snmp_build_var_op' from incompatible
pointer type
smux.c:286: warning: passing arg 2 of `asn_build_sequence' from incompatible
pointer type
smux.c:289: warning: passing arg 2 of `asn_build_sequence' from incompatible
pointer type
smux.c: In function `smux_var':
smux.c:310: warning: passing arg 2 of `asn_parse_header' from incompatible
pointer type
smux.c:318: warning: passing arg 7 of `snmp_parse_var_op' from incompatible
pointer type
smux.c: In function `smux_set':
smux.c:432: warning: passing arg 3 of pointer to function from incompatible
pointer type
smux.c: In function `smux_get':
smux.c:492: warning: passing arg 3 of pointer to function from incompatible
pointer type
smux.c: In function `smux_getnext':
smux.c:577: warning: passing arg 3 of pointer to function from incompatible
pointer type
smux.c: In function `smux_parse_rrsp':
smux.c:700: warning: passing arg 2 of `asn_parse_int' from incompatible
pointer type
smux.c: In function `smux_parse':
smux.c:723: warning: passing arg 2 of `asn_parse_header' from incompatible
pointer type
smux.c: In function `smux_open':
smux.c:869: warning: passing arg 2 of `asn_build_header' from incompatible
pointer type
smux.c:875: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:881: warning: passing arg 2 of `asn_build_objid' from incompatible
pointer type
smux.c:887: warning: passing arg 2 of `asn_build_string' from incompatible
pointer type
smux.c:893: warning: passing arg 2 of `asn_build_string' from incompatible
pointer type
smux.c:897: warning: passing arg 2 of `asn_build_header' from incompatible
pointer type
smux.c: In function `smux_register':
smux.c:922: warning: passing arg 2 of `asn_build_header' from incompatible
pointer type
smux.c:928: warning: passing arg 2 of `asn_build_objid' from incompatible
pointer type
smux.c:934: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:940: warning: passing arg 2 of `asn_build_int' from incompatible
pointer type
smux.c:947: warning: passing arg 2 of `asn_build_header' from incompatible
pointer type
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.so when searching for
-lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libnsl.a when searching for
-lnsl
/usr/bin/ld: skipping incompatible /usr/lib/libresolv.so when searching for
-lresolv
/usr/bin/ld: skipping incompatible /usr/lib/libresolv.a when searching for
-lresolv
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for
-lpthread
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.so when searching for
-lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libcrypt.a when searching for
-lcrypt
/usr/bin/ld: skipping incompatible /usr/lib/libdl.so when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libdl.a when searching for -ldl
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
radrelay.c: In function `main':
radrelay.c:875: warning: passing arg 1 of `free' discards qualifiers from
pointer target type
Make install errors:
libtool: install: warning: relinking `rlm_eap.la'
(cd /home/user/freeradius-1.1.2/src/modules/rlm_eap; /bin/sh
/home/user/freeradius-1.1.2/libtool --mode=relink gcc -release 1.1.2 -module
-export-dynamic -o rlm_eap.la -rpath /software/freeradius-1.1.2/lib
rlm_eap.lo eap.lo mem.lo state.lo rlm_eap.c eap.c mem.c state.c
/home/user/freeradius-1.1.2/src/lib/libradius.la libeap/libeap.la -lltdl
-lnsl -lresolv -lpthread)
*** Warning: This library needs some functionality provided by -lltdl.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module rlm_eap. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
ar cru .libs/rlm_eap.a rlm_eap.o eap.o mem.o state.o
ranlib .libs/rlm_eap.a
creating rlm_eap.la
(cd .libs && rm -f rlm_eap.la && ln -s ../rlm_eap.la rlm_eap.la)
/home/user/freeradius-1.1.2/install-sh -c -c .libs/rlm_eap-1.1.2.soT
/software/freeradius-1.1.2/lib/rlm_eap-1.1.2.so
install: .libs/rlm_eap-1.1.2.soT does not exist
gmake[6]: *** [install] Error 1
gmake[6]: Leaving directory
`/home/user/freeradius-1.1.2/src/modules/rlm_eap'
gmake[5]: *** [common] Error 2
gmake[5]: Leaving directory `/home/user/freeradius-1.1.2/src/modules'
gmake[4]: *** [install] Error 2
gmake[4]: Leaving directory `/home/user/freeradius-1.1.2/src/modules'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/home/user/freeradius-1.1.2/src'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory `/home/user/freeradius-1.1.2/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/home/user/freeradius-1.1.2'
make: *** [install] Error 2
------------------------------
Message: 4
Date: Wed, 31 May 2006 15:59:25 +0200
From: Stefan Winter <stefan.winter at restena.lu>
Subject: Re: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" - "ld:
skippingincompatible"
To: FreeRadius users mailing list
<freeradius-users at lists.freeradius.org>
Message-ID: <200605311559.25490.stefan.winter at restena.lu>
Content-Type: text/plain; charset="iso-8859-15"
> *** Warning: This library needs some functionality provided by -lltdl.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
Well, I don't _know_, but my guess is that this message is quite clear: get
a
shared .so of ltdl.
Stefan Winter
--
Stefan WINTER
Stiftung RESTENA - Riseau Tiliinformatique de l'Education Nationale et de
la Recherche
Ingenieur Forschung & Entwicklung
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
E-Mail: stefan.winter at restena.lu Tel.: +352 424409-1
http://www.restena.lu Fax: +352 422473
------------------------------
Message: 5
Date: Wed, 31 May 2006 10:37:41 -0400
From: "Alan" <abaker at cliquecom.com>
Subject: RE: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" -
"ld:skippingincompatible"
To: "'FreeRadius users mailing list'"
<freeradius-users at lists.freeradius.org>
Message-ID: <ISDMAIL1oe2U8QVjp3b00000f14 at isdmail1.inovsys.com>
Content-Type: text/plain; charset="iso-8859-1"
I am using the GNU version of libtool which supports shared libraries. I've
copy and pasted the configure script output and don't recognize any
problems. Please advise.
Thanks,
Alan
--
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking whether gcc needs -traditional... (cached) no
checking whether we are using SUNPro C... (cached) no
checking for ranlib... (cached) ranlib
checking whether byte ordering is bigendian... (cached) no
checking for gmake... (cached) yes
checking for gmake... (cached) /usr/bin/gmake
checking for lt_dlinit in -lltdl... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking host system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) file_magic ELF
[0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for file... (cached) /usr/bin/file
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached)
no
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
checking logdir... ${localstatedir}/log/radius
checking radacctdir... ${logdir}/radacct
checking raddbdir... ${sysconfdir}/raddb
checking for perl... (cached) /usr/bin/perl
checking for snmpget... (cached) /usr/bin/snmpget
checking for snmpwalk... (cached) /usr/bin/snmpwalk
checking for rusers... (cached) /usr/bin/rusers
checking for working aclocal... found
checking for working autoconf... found
checking for working autoheader... found
checking for locate... (cached) /usr/bin/locate
checking for dirname... (cached) /usr/bin/dirname
checking for grep... (cached) /bin/grep
checking for pthread.h... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking for library containing sem_init... (cached) none required
checking for getsockname in -lsocket... (cached) no
checking for inet_aton in -lresolv... (cached) yes
checking for inet_ntoa in -lnsl... (cached) yes
checking for DH_new in -lcrypto... (cached) yes
checking for SSL_new in -lssl... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for unistd.h... (cached) yes
checking for crypt.h... (cached) yes
checking for errno.h... (cached) yes
checking for resource.h... (cached) no
checking for getopt.h... (cached) yes
checking for malloc.h... (cached) yes
checking for utmp.h... (cached) yes
checking for utmpx.h... (cached) yes
checking for signal.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for syslog.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdio.h... (cached) yes
checking for netdb.h... (cached) yes
checking for semaphore.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/security.h... (cached) no
checking for fcntl.h... (cached) yes
checking for sys/fcntl.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/prctl.h... (cached) yes
checking for prot.h... (cached) no
checking for sia.h... (cached) no
checking for siad.h... (cached) no
checking for regex.h... (cached) yes
checking for openssl/ssl.h... (cached) yes
checking for openssl/crypto.h... (cached) yes
checking for openssl/err.h... (cached) yes
checking for openssl/engine.h... (cached) yes
checking for OpenSSL version >= 0.9.7... yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for socklen_t... (cached) yes
checking for uint8_t... (cached) yes
checking for uint16_t... (cached) yes
checking for uint32_t... (cached) yes
checking for getopt_long... (cached) yes
checking for lockf... (cached) yes
checking for strsignal... (cached) yes
checking for sigaction... (cached) yes
checking for sigprocmask... (cached) yes
checking for pthread_sigmask... (cached) yes
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for setsid... (cached) yes
checking for strncasecmp... (cached) yes
checking for strcasecmp... (cached) yes
checking for localtime_r... (cached) yes
checking for ctime_r... (cached) yes
checking for gmtime_r... (cached) yes
checking for strsep... (cached) yes
checking for inet_aton... (cached) yes
checking for inet_pton... (cached) yes
checking for inet_ntop... (cached) yes
checking for gethostname... (cached) yes
checking for setlinebuf... (cached) yes
checking for setvbuf... (cached) yes
checking for getusershell... (cached) yes
checking for initgroups... (cached) yes
checking for closefrom... (cached) no
checking whether crypt must be declared... (cached) no
checking whether strncasecmp must be declared... (cached) no
checking whether strcasecmp must be declared... (cached) no
checking whether inet_aton must be declared... (cached) no
checking whether gethostname must be declared... (cached) no
checking whether setlinebuf must be declared... (cached) no
checking whether getusershell must be declared... (cached) no
checking whether endusershell must be declared... (cached) no
checking return type of signal handlers... (cached) void
checking for ut_xtime in struct utmpx... no
checking for ipi_addr in struct in_pktinfo... yes
checking for working const... (cached) yes
checking type of OS... Linux
checking for developer gcc flags... no.
checking for crypt in -lcrypt... (cached) yes
checking for setkey in -lcipher... (cached) no
checking gethostbyaddr_r() syntax... GNU-style
checking gethostbyname_r() syntax... GNU-style
checking ctime_r() syntax... POSIX-style
top_builddir=/home/user/freeradius-1.1.2
updating cache ./config.cache
creating ./config.status
creating ./Make.inc
creating ./src/include/build-radpaths-h
creating ./src/main/Makefile
creating ./src/main/checkrad.pl
creating ./src/main/radlast
creating ./src/main/radtest
creating ./scripts/rc.radiusd
creating ./scripts/radwatch
creating ./scripts/check-radiusd-config
creating ./scripts/radiusd.cron.daily
creating ./scripts/radiusd.cron.monthly
creating ./scripts/cryptpasswd
creating ./raddb/dictionary
creating ./raddb/radiusd.conf
creating src/include/autoconf.h
-----Original Message-----
From: freeradius-users-bounces+abaker=cliquecom.com at lists.freeradius.org
[mailto:freeradius-users-bounces+abaker=cliquecom.com at lists.freeradius.org]
On Behalf Of Stefan Winter
Sent: Wednesday, May 31, 2006 9:59 AM
To: FreeRadius users mailing list
Subject: Re: 1.1.2 Build Problems - "rlm_eap-1.1.2.soT" -
"ld:skippingincompatible"
> *** Warning: This library needs some functionality provided by -lltdl.
> *** I have the capability to make that library automatically link in when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
Well, I don't _know_, but my guess is that this message is quite clear: get
a
shared .so of ltdl.
Stefan Winter
--
Stefan WINTER
Stiftung RESTENA - Riseau Tiliinformatique de l'Education Nationale et de
la Recherche
Ingenieur Forschung & Entwicklung
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
E-Mail: stefan.winter at restena.lu Tel.: +352 424409-1
http://www.restena.lu Fax: +352 422473
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
------------------------------
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
End of Freeradius-Users Digest, Vol 13, Issue 145
*************************************************
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list