Re: FreeRadius installation problem.

2006-11-01 Thread Ramm-Ericson, Johannes
Chad Best wrote:
 Date: Tue, 31 Oct 2006 09:45:09 -0800 (PST)
 From: Chad Best [EMAIL PROTECTED]
 Subject: FreeRadius installation problem.
 To: freeradius-users@lists.freeradius.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1
 
 When I run ./confiugre, make and make install, radiusd does not 
 install.  I have checked the/usr/local/bin and /usr/local/sbin and it 
 is not there.  Yes, I did make sure that I was showing hidden files 
 when I search for it.  I also did a search for radiusd and it does not

 show up anywhere.  Therefore, when I try to run radiusd by typing
 radiusd -X, it says command not found.

 I am running Ubuntu Linux and trying to install 
 Freeradius-1.0.0(behind the times, I know).  I am a total newbie to 
 Freeradius altogether, so please be patient!  I have already tried to 
 reinstall, but that didn't work.  Any help would greatly be
appreciated.

Hi Chad!

Is there any particular reason that you are compiling from source (and
using a very old version of freeradis aswell)? If there is no absolute
requirement for you to compile from source I'd suggest using the
freeradius package in the ubuntu repository. That should get you started
with freeradius. YMMV but once you've had a chance to play around with
freeradius and maybe want to start using it in a more demanding fashion
- then I'd go with compiling it myself. Install it using the following
command:

sudo apt-get install freeradius

In Ubuntu 6.10 (Edgy) you'll be installing freeradius 1.1.3 (the latest
stable version). I think Ubuntu 6.06 (Dapper) carries freeradius 1.1.2 -
but I'm not sure.

BR,
Johannes

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: FreeRadius installation problem.

2006-11-01 Thread Chad Best


--- Ramm-Ericson, Johannes
[EMAIL PROTECTED] wrote:



 
 Hi Chad!
 
 Is there any particular reason that you are
 compiling from source (and
 using a very old version of freeradis aswell)? If
 there is no absolute
 requirement for you to compile from source I'd
 suggest using the
 freeradius package in the ubuntu repository. That
 should get you started
 with freeradius. YMMV but once you've had a chance
 to play around with
 freeradius and maybe want to start using it in a
 more demanding fashion
 - then I'd go with compiling it myself. Install it
 using the following
 command:
 
 sudo apt-get install freeradius
 
 In Ubuntu 6.10 (Edgy) you'll be installing
 freeradius 1.1.3 (the latest
 stable version). I think Ubuntu 6.06 (Dapper)
 carries freeradius 1.1.2 -
 but I'm not sure.
 
 BR,
 Johannes


Thank you for that reply.  I installed FreeRadius last
night from the repository and it works great.  I
checked the repository before I tried to install using
the source.  However, I didn't see Freeradius on the
list.  Once I added the universal repository from
Ubuntu, I was able to install Freeradius successfully.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: FreeRadius installation problem.

2006-10-31 Thread Hernan Antolini

Any strange output from configure or
make ? are you sure you're running make install as root ? what are the
error messages if any =?

[EMAIL PROTECTED]
wrote on 10/31/2006 02:45:09 PM:

 When I run ./confiugre, make and make install, radiusd
does not 
 install. I have checked the /usr/local/bin and /usr/local/sbin
and 
 it is not there. Yes, I did make sure that I was showing hidden

 files when I search for it. I also did a search for radiusd
and it 
 does not show up anywhere. Therefore, when I try to run radiusd
by 
 typing radiusd -X, it says command not found. 
 
 I am running Ubuntu Linux and trying to install Freeradius-1.0.
 0(behind the times, I know). I am a total newbie to Freeradius

 altogether, so please be patient! I have already tried to 
 reinstall, but that didn't work. Any help would greatly be appreciated.
 
 
 - 
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: FreeRadius installation problem.

2006-10-31 Thread Chad Best


--- Hernan Antolini [EMAIL PROTECTED] wrote:

 Any strange output from configure or make ? are you
 sure you're running 
 make install as root ? what are the error messages
 if any =?
 

I did run ./configure, make and make install as root.

There is an error message from make install that
concerns me about radiusd.  It is 

Making install in main...
make[4]: Entering directory
`/usr/local/src/freeradius-1.0.0/src/main'
/usr/local/src/freeradius-1.0.0/libtool --mode=install
/usr/local/src/freeradius-1.0.0/install-sh -c -m 755
-s radiusd   /usr/local/sbin
/usr/local/src/freeradius-1.0.0/install-sh -c -m 755
-s radiusd /usr/local/sbin/radiusd
install:  radiusd does not exist


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: FreeRadius installation problem.

2006-10-31 Thread Dennis Skinner
Chad Best wrote:
 Making install in main...
 make[4]: Entering directory
 `/usr/local/src/freeradius-1.0.0/src/main'
 /usr/local/src/freeradius-1.0.0/libtool --mode=install
 /usr/local/src/freeradius-1.0.0/install-sh -c -m 755
 -s radiusd   /usr/local/sbin
 /usr/local/src/freeradius-1.0.0/install-sh -c -m 755
 -s radiusd /usr/local/sbin/radiusd
 install:  radiusd does not exist

1. Go get a newer version.  You are compiling from source, there is no
reason not to be using the latest stable version.  If you want support,
you need to use a version that people can help you with.

2. There was probably an error in make.  Look again.  If you do
something like make  make_output.txt that will save the normal STDOUT
output to a file (to review later if you like) and the STDERR will still
go to your screen and will be easier to see.

-- 
Dennis Skinner
Systems Administrator
BlueFrog Internet
http://www.bluefrog.com
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Freeradius installation problem

2004-12-08 Thread Anson Rinesmith
I had a similar problem, when I didn't install MySQL before installing FR.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:freeradius-
 [EMAIL PROTECTED] On Behalf Of vamsikv
 Sent: Wednesday, December 08, 2004 1:20 AM
 To: [EMAIL PROTECTED]
 Subject: Freeradius installation problem
 
 I have tried to install freeradius version
 freeradius-snapshot-20040607.tar.gz in two Linux 8.0 versions .I have been
 able to install in one system but in another system i got error after
 giving
 make .Below i am printing just a part of the error message .My doubt is
 why
 the problem did not occur with the first machine in which i was able to
 install even though both were of the same versions.
 
 The error message was
 sql_mysql.c: In function `sql_affected_rows':
 sql_mysql.c:395: `mysql_sock' undeclared (first use in this function)
 sql_mysql.c:397: warning: implicit declaration of function
 `mysql_affected_rows'sql_mysql.c:393: warning: unused parameter `config'
 gmake[10]: *** [sql_mysql.o] Error 1
 gmake[10]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-
 20040607/src/modules/rlm_s
 ql/drivers/rlm_sql_mysql'
 gmake[9]: *** [common] Error 1
 
 gmake[8]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-
 20040607/src/modules/rlm_s
 ql/drivers'
 gmake[7]: *** [common] Error 1
 gmake[7]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-
 20040607/src/modules/rlm_s
 ql'
 gmake[6]: *** [static] Error 2
 gmake[6]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-
 20040607/src/modules/rlm_s
 ql'
 gmake[5]: *** [common] Error 1
 gmake[5]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-20040607/src/modules'
 gmake[4]: *** [all] Error 2
 gmake[4]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-20040607/src/modules'
 gmake[3]: *** [common] Error 1
 gmake[3]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-20040607/src'
 gmake[2]: *** [all] Error 2
 gmake[2]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-20040607/src'
 gmake[1]: *** [common] Error 1
 gmake[1]: Leaving directory
 `/root/PnacEval/PnacEvalTools/freeradius-snapshot-20040607'
 make: *** [all] Error 2
 
 
 Please clarify my doubt and kindly let me know if i am missing something.
 Thanks  Regards,
 Vamsi
 
 
 
 
 
 
 
 **
 *
 This message is proprietary to Future Software Limited (FSL)
 and is intended solely for the use of the individual to whom it
 is addressed. It may contain  privileged or confidential information
 and should not be circulated or used for any purpose other than for
 what it is intended.
 
 If you have received this message in error, please notify the
 originator immediately. If you are not the intended recipient,
 you are notified that you are strictly prohibited from using,
 copying, altering, or disclosing the contents of this message.
 FSL accepts no responsibility for loss or damage arising from
 the use of the information transmitted by this email including
 damage from virus.
 **
 *
 
 
 -
 List info/subscribe/unsubscribe? See
 http://www.freeradius.org/list/users.html


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius installation problem

2004-12-08 Thread Neil Craig
Hi all

I'm looking to implement a prepaid card type service - I plan on using
Session-Timeout to disconnect the users. How does freeradius keep
track of the time elapsed while connected? I am holding all the info
in SQL - I guess when a user connects it counts down until 0 then
sends the signal to the NAS to disconnect - if the user reconnects it
is back to the original value.
How can I have a counter that doesn't expire - say the user 'topped
up' by 30 days worth on the 9th of the month - it wouldn't expire
until 30 days from then (so couldn't use  monthly counters?)

Regards

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius installation problem

2004-12-08 Thread Dustin Doris

 Hi all

 I'm looking to implement a prepaid card type service - I plan on using
 Session-Timeout to disconnect the users. How does freeradius keep
 track of the time elapsed while connected? I am holding all the info
 in SQL - I guess when a user connects it counts down until 0 then
 sends the signal to the NAS to disconnect - if the user reconnects it
 is back to the original value.

Radius doesn't send a message to the NAS to disconnect.  The reply of
Session-Timeout tells the NAS when to disconnect.  Its up to the NAS to
listen to that reply and actually disconnect the user (most do).

 How can I have a counter that doesn't expire - say the user 'topped
 up' by 30 days worth on the 9th of the month - it wouldn't expire
 until 30 days from then (so couldn't use  monthly counters?)


You want to give the user 30 days of access, then do something like this
in sqlcounter

sqlcounter blockoftime {
counter-name = Block-Of-Time
check-name = Session-End-Time
sqlmod-inst = sql
key = User-Name
reset = never
query = select UNIX_TIMESTAMP();
}

then set the session-end-time in their reply attribute to be 30 days after
the time they set up the account.  Remember its in unix timestamp format.



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius installation problem

2004-12-08 Thread Edgars

I'm looking to implement a prepaid card type service - I plan on using
Session-Timeout to disconnect the users. 

actually this is not a way prepaid cards works. In this case you are 
giving the same time for the user at any time he connects to the NAS. 
But you have to make a mechanism which disables the access for the 
specific person after some time period. You can try to use sqlcounter 
module for these purposes.

How does freeradius keep
track of the time elapsed while connected? I am holding all the info
in SQL - I guess when a user connects it counts down until 0 then
sends the signal to the NAS to disconnect - if the user reconnects it
is back to the original value.
 

it depends on your NAS server - whether it supports or not such a user 
disconnection. For example, MikroTik does.

How can I have a counter that doesn't expire - say the user 'topped
up' by 30 days worth on the 9th of the month - it wouldn't expire
until 30 days from then (so couldn't use  monthly counters?)
 

write your own script, put it in crontab. In the DB add specific column 
where the deadline should be set for the customer. That script should 
check this column - whether it's valid or not.

Edgars
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Freeradius installation problem

2004-12-08 Thread Carl Peterson
I am doing the same thing using chilli, freeradius, and mysql.  I use 
Max-All-Sessions and wrote a counter for it.  Of course my cards are good for 
x seconds.  Using Session-Timeout would mean that a session could be x 
seconds long but as soon as you log back in you can have another x seconds. 

CP

On Wednesday 08 December 2004 09:59, Neil Craig wrote:
 Hi all

 I'm looking to implement a prepaid card type service - I plan on using
 Session-Timeout to disconnect the users. How does freeradius keep
 track of the time elapsed while connected? I am holding all the info
 in SQL - I guess when a user connects it counts down until 0 then
 sends the signal to the NAS to disconnect - if the user reconnects it
 is back to the original value.
 How can I have a counter that doesn't expire - say the user 'topped
 up' by 30 days worth on the 9th of the month - it wouldn't expire
 until 30 days from then (so couldn't use  monthly counters?)

 Regards

 -
 List info/subscribe/unsubscribe? See
 http://www.freeradius.org/list/users.html

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html