RE: FreeBSD 5.1 & Freeradius 0.9.1
> From: Paul Hampson > Sent: Monday, 13 October 2003 3:01 PM > > From: Rohaizam Abu Bakar > > Sent: Monday, 13 October 2003 11:34 AM > > > below is your request > > > > #define HOSTINFO"i386-unknown-freebsd5.1" > > > OK, try the following patch to configure and see if it > helps any... > > (IE use this patch, rerun configure and then see what the > value of GETHOSTBYADDRSTYLE and GETHOSTBYNAMETYLE in > src/include/autoconf.h is. Then try building.) > > Only the first hunk needs to work. The rest are OK if they fail, > since they're just line-number changes. Dammit. Here's the fixed patch: Index: configure === RCS file: /source/radiusd/configure,v retrieving revision 1.73.2.8 diff -u -r1.73.2.8 configure --- configure 4 Sep 2003 15:14:10 - 1.73.2.8 +++ configure 13 Oct 2003 05:20:12 - @@ -7975,8 +7975,19 @@ gethostbyaddrrstyle="" echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6 echo "configure:7978: checking gethostbyaddr_r() syntax" >&5 -cat > conftest.$ac_ext <> confdefs.h <<\EOF +#define GETHOSTBYADDRRSTYLE BSDSTYLE +EOF + + gethostbyaddrrstyle=BSD + echo "configure: warning: FreeBSD overridden to BSD-style" 1>&2 + ;; +esac +if test "x$gethostbyaddrrstyle" = "x"; then + cat > conftest.$ac_ext < @@ -7986,7 +7997,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF -if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8000,9 +8011,10 @@ cat conftest.$ac_ext >&5 fi rm -f conftest* +fi if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext < @@ -8012,7 +8024,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ; return 0; } EOF -if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8029,7 +8041,7 @@ fi if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext < @@ -8039,7 +8051,7 @@ gethostbyaddr(NULL, 0, 0) ; return 0; } EOF -if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8064,9 +8076,9 @@ gethostbynamerstyle="" echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6 -echo "configure:8068: checking gethostbyname_r() syntax" >&5 +echo "configure:8080: checking gethostbyname_r() syntax" >&5 cat > conftest.$ac_ext < @@ -8076,7 +8088,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF -if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8092,7 +8104,7 @@ rm -f conftest* if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext < @@ -8102,7 +8114,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ; return 0; } EOF -if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8119,7 +8131,7 @@ fi if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext < @@ -8129,7 +8141,7 @@ gethostbyname(NULL) ; return 0; } EOF -if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8154,7 +8166,7 @@ if test x"$rad_enable_largefiles" = xyes ; then echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6 -echo "configure:8158: checking for largefile linkage" >&5 +echo "configure:8170: checking for largefile linkage" >&5 case "$host" in *-aix4.01*) echo "$ac_t""no" 1>&6 @@ -8191,7 +8203,7 @@ # Extract the first word of "getconf", so it can be a program name with args. set dummy getconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:8195: checking for $ac_word" >&5 +echo "configure:8207: checking for $ac_word" >&5 if
RE: FreeBSD 5.1 & Freeradius 0.9.1
> From: Rohaizam Abu Bakar > Sent: Monday, 13 October 2003 11:34 AM > below is your request > > #define HOSTINFO"i386-unknown-freebsd5.1" > OK, try the following patch to configure and see if it helps any... (IE use this patch, rerun configure and then see what the value of GETHOSTBYADDRSTYLE and GETHOSTBYNAMETYLE in src/include/autoconf.h is. Then try building.) Only the first hunk needs to work. The rest are OK if they fail, since they're just line-number changes. Index: configure === RCS file: /source/radiusd/configure,v retrieving revision 1.73.2.8 diff -u -r1.73.2.8 configure --- configure 4 Sep 2003 15:14:10 - 1.73.2.8 +++ configure 13 Oct 2003 04:55:10 - @@ -7975,8 +7975,19 @@ gethostbyaddrrstyle="" echo $ac_n "checking gethostbyaddr_r() syntax""... $ac_c" 1>&6 echo "configure:7978: checking gethostbyaddr_r() syntax" >&5 -cat > conftest.$ac_ext <> confdefs.h <<\EOF +#define GETHOSTBYADDRRSTYLE BSDSTYLE +EOF + + gethostbyaddrrstyle=BSD + echo "configure: warning: FreeBSD overridden to BSD-style" 1>&2 + ;; +esac +if test "x$gethostbyaddrrstyle" = "x"; then + cat > conftest.$ac_ext < @@ -7986,7 +7997,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF -if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8002,7 +8013,7 @@ rm -f conftest* if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext < @@ -8012,7 +8023,7 @@ gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL) ; return 0; } EOF -if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8029,7 +8040,7 @@ fi if test "x$gethostbyaddrrstyle" = "x"; then cat > conftest.$ac_ext < @@ -8039,7 +8050,7 @@ gethostbyaddr(NULL, 0, 0) ; return 0; } EOF -if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8064,9 +8075,9 @@ gethostbynamerstyle="" echo $ac_n "checking gethostbyname_r() syntax""... $ac_c" 1>&6 -echo "configure:8068: checking gethostbyname_r() syntax" >&5 +echo "configure:8079: checking gethostbyname_r() syntax" >&5 cat > conftest.$ac_ext < @@ -8076,7 +8087,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL) ; return 0; } EOF -if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8092,7 +8103,7 @@ rm -f conftest* if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext < @@ -8102,7 +8113,7 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL) ; return 0; } EOF -if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8119,7 +8130,7 @@ fi if test "x$gethostbynamerstyle" = "x"; then cat > conftest.$ac_ext < @@ -8129,7 +8140,7 @@ gethostbyname(NULL) ; return 0; } EOF -if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cat >> confdefs.h <<\EOF @@ -8154,7 +8165,7 @@ if test x"$rad_enable_largefiles" = xyes ; then echo $ac_n "checking for largefile linkage""... $ac_c" 1>&6 -echo "configure:8158: checking for largefile linkage" >&5 +echo "configure:8169: checking for largefile linkage" >&5 case "$host" in *-aix4.01*) echo "$ac_t""no" 1>&6 @@ -8191,7 +8202,7 @@ # Extract the first word of "getconf", so it can be a program name with args. set dummy getconf; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:8195: checking for $ac_word" >&5 +echo "configure:8206: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GETCONF'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else 1234567891123456789212345678931234567894123456789512345
rlm_sqlcounter
Good day Mr. kalevras thanks for suggestion. As of now, the user login works correctly. I have a question regarding rlm_sqlcounter, do i need to create a special counter to do this task? I want to limit the monthly internet usage of the client. For example 10 hours per month then after 10 hours it is disconnected and dialup_admin show that the user is out of monthly quota. Monthly counter work in this but I thought because the user already consume 10 hours probably the user can't login anymore without administrator's update. But after testing whew ... the user can still login again and again and again, disconnecting every 10 hours. = [ apellido jr., wilfredo p. ] +63 034 4880-449 If you can't hear me, it's because i'm in parentheses. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: FreeBSD 5.1 & Freeradius 0.9.1
paul, sorry for late reply... not reading mail during weekend... below is your request #define HOSTINFO"i386-unknown-freebsd5.1" I'm available from 8.30 to 17.30 (GMT 8+ ) for any test required from you --haizam - Original Message - From: "Paul Hampson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 11, 2003 7:01 AM Subject: RE: FreeBSD 5.1 & Freeradius 0.9.1 > > From: Rohaizam Abu Bakar > > Sent: Thursday, 9 October 2003 11:47 AM > > > when compiling conftest.c, it still require confdefs.h .. so I just touch > > empty confdefs.h file compile and then i got conftest file..below is the > > result... > > > # ldd conftest > > conftest: > > libc_r.so.5 => /usr/lib/libc_r.so.5 (0x2806b000) > > libc.so.5 => /usr/lib/libc.so.5 (0x2808e000) > > # ./conftest > > > > > > nothing happen when running it... > > That's what I expected... > > OK, please look at src/include/autoconf.h and find the value of HOSTINFO > for me. I'm going to special-case FreeBSD and then release 0.9.2 'cause > it's already later than I intended. This problem appears to affect both > 5.1 and 4.8 identically... For some reason configure's tests pull in _r > but the actual build process doesn't. (Probably libtool's fault. :-( > > -- > Paul "TBBle" Hampson > Bubblesworth Pty Ltd (ABN: 51 095 284 361) > [EMAIL PROTECTED] > > On a sidewalk near Portland State > University someone wrote `Trust Jesus', and > someone else wrote `But Cut the Cards'. > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > > [ Scanned by JARING E-Mail Virus Scanner ( http://www.jaring.my ) ] - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Freeradius with VoIP prepaid,postpaid billing
-BEGIN PGP SIGNED MESSAGE- > "dome" == dome <[EMAIL PROTECTED]> writes: dome> I need to buy Voip Prepaid,postpaid Billing Modules for freeradius. dome> Can someone develop for me ? Do you mean EAP-SIM, and EAP-AKA? The former is about to go into testing phase. The latter is planned, pending funding. To make it prepaid/postpaid, would likely require some additional interaction with a database. What PBX system are you trying to interact with? Asterix by any chance? ] Train travel features AC outlets with no take-off restrictions| firewalls [ ] Michael Richardson, Sandelman Software Works, Ottawa, ON|net architect[ ] [EMAIL PROTECTED] http://www.sandelman.ottawa.on.ca/ |device driver[ ] panic("Just another Debian/notebook using, kernel hacking, security guy"); [ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Finger me for keys - custom hacks make this fully PGP2 compat iQCVAwUBP4mbaYqHRg3pndX9AQEQvgP/VIxm81g96ruu2XoBAKrL++/WzDQ2H12O AEMEkuHUK0H49pyjwGRhmX0oZo+guo97eL2f5w63IxdAnD8e1qPsQGyoHVd+2832 aR7j41kojvEXzWTqkyI0UPTMbPHop3CIfyvpOo0b3kJTnkBagyfRW58ouYMSovd/ TBeY9NQd79Q= =BNNV -END PGP SIGNATURE- - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Login-Time Problem Freeradius-0.9.1
On Sat, 11 Oct 2003, apellido jr., wilfredo p wrote: > Good day Mr. Kalevras, thanks for the reply. I think > the problem is my NAS (Cyclades Ze using Portslave) > and Portmaster. And i got another one problem > Simultaneous-Use doesnt work also. if the user is > already connected then i tried to connect using > radtest unfortunately it is accepted. In dialup_admin > Online user report shows it disconnected Well that means that the session has not been logged in the radacct table as open. Make sure that accounting works correctly and that the user sessions are correctly logged in the accounting database. Also make sure that the module handling the session checking (either sql or radutmp) is listed both in the session and accounting sections. > but it radius > log (radius -xx) nothing stating that the user is > disconnected. In reality the user still connected. > Lastly, I got no log in my radius.log and i know that > the problem also related to my NAS. I got no any > Manual so i tried to search any documentation in web > but unfortunately im still hanging looking for > anything. Do u have any Suggestion ? thanks very much > > = > [ apellido jr., wilfredo p. ] > +63 034 4880-449 > > If you can't hear me, it's because i'm in parentheses. > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: failed logins
On Sun, 12 Oct 2003, Doron Shmaryahu wrote: > Hi all, > > After much trying I have finally got freeradius on Freebsd with mysql > all working. The dialup admin interface is working. The only thing is > that it does not log failed login's. Can anyone give me a idea ?? You should run the dialup_admin/bin/log_badlogins script to log them. > > tahnks > > > > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > -- Kostas Kalevras Network Operations Center [EMAIL PROTECTED] National Technical University of Athens, Greece Work Phone: +30 210 7721861 'Go back to the shadow' Gandalf - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
failed logins
Hi all, After much trying I have finally got freeradius on Freebsd with mysql all working. The dialup admin interface is working. The only thing is that it does not log failed login's. Can anyone give me a idea ?? tahnks - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Freeradius with VoIP prepaid,postpaid billing
Dear sir, I need to buy Voip Prepaid,postpaid Billing Modules for freeradius. Can someone develop for me ? Best Regards. Dome C. This message was sent using IMP, the Internet Messaging Program. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html