Re: How to restrict total usage time.

2005-04-10 Thread Carl Peterson
I use this setup:

In radiusd.conf I write a counter:

$INCLUDE  ${confdir}/sql.conf

sqlcounter noresetcounter {
counter-name = Max-All-Session-Time
check-name = Max-All-Session
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT SUM(AcctSessionTime) FROM radacct WHERE 
UserName='%{%k}'"
}

When a user logs in, radius checks the counter:

rlm_sql (sql): sql_set_user escaped user --> 'tagric15'
radius_xlat:  'SELECT SUM(AcctSessionTime) FROM radacct WHERE 
UserName='tagric15''
rlm_sql (sql): Reserving sql socket id: 0
rlm_sql (sql): - sql_xlat finished
rlm_sql (sql): Released sql socket id: 0
radius_xlat:  '125168'
rlm_sqlcounter: (Check item - counter) is greater than zero
rlm_sqlcounter: Authorized user tagric15, check_item=, counter=125168
rlm_sqlcounter: Sent Reply-Item for user tagric15, Type=Session-Timeout, 
value=99874831
  modcall[authorize]: module "noresetcounter" returns ok for request 31

Of course the Max-All-Session attribute needs to be set for the user.  My full 
radiusd.conf file is available at jabali.net/~carl under the phpMyPrepaid 
section.  There are also notes in notes.txt

Carl Peterson
Jabali Networks



On Wednesday 06 April 2005 21:53, Graeme Lee wrote:
> Shahidul Islam wrote:
> >Hello,
> >
> > I'd like to implement following scenario with freeradius:
> >
> > User has some specific time (say 3600 seconds) one can use. After the
> > time is exceeded, radiusd return zero seconds as access-time for the
> > user when one logs in.
> >
> > NAS requests allowed access-time when user logs in and returns used
> > time to radiusd when user logs off.
> >
> > I'd like to store this information in sql-database (mysql).
> >
> >Babu
> >
> >-
> >List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
>
> stored procedures and triggers are wonderful things.  I have no
> familiarity with mysql's abilities in this regard though.
>
> G
>
>
> -
> 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: Anyone using radzap?

2005-04-10 Thread Mike Cisar
Hi Alan,

>   So far as I can tell, radzap hasn't worked for a while.  If 
> so, I'll poke it, and see if I can't get it to work.  This 
> may, however, involve changing the command-line options...

Can't say as I've been using it, for the obvious reasons... but I've wanted
to several times in the past couple months :-)

Cheers,
> Mike <


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


Re: Error: Dropping conflicting packet due to unfinished request

2005-04-10 Thread Alan DeKok
[EMAIL PROTECTED] (Paul Hampson) wrote:
> Which's this fix?

  Revisions 1.83 through 1.87 of src/main/threads.c.  The "exec" code
was cleaned up, which means lots of garbage was deleted.

  The patches can be back-ported to 1.0.x, for a 1.0.3 release, but
I'd really like to release 1.1.0 one of these days.

  Alan DeKok.

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


Re: Beginner question: Trying to secure a wlan

2005-04-10 Thread Vladimir Vuksan
Tim Boneko wrote:
A silly question, perhaps, but you *did* configure you wireless AP to
actually *use* the RADIUS server, did you not?
   

OW! Damn, i forgot to mention that the AP _is_ the Radius server...
sorry, my fault. It?s a SoftAP.
 

That still doesn't tell us whether you configured SoftAP to use the 
RADIUS server ? SoftAP is only the AP piece but not the RADIUS server 
itself. You have to point to FreeRADIUS instance you are using.

Errr... where is it? I can?t find it...
Thanks so far,
 

Go to www.freeradius.org. Press CTRL-F and type 802.1x and Voila!
http://tldp.org/HOWTO/html_single/8021X-HOWTO/


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


Re: Beginner question: Trying to secure a wlan

2005-04-10 Thread Tim Boneko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Seymour schrieb:

> A silly question, perhaps, but you *did* configure you wireless AP to
> actually *use* the RADIUS server, did you not?

OW! Damn, i forgot to mention that the AP _is_ the Radius server...
sorry, my fault. It?s a SoftAP.

> There's mention of, and a link to, the "802.1X Port-Based Authentication
> HOWTO" right on FreeRADIUS' home page.

Errr... where is it? I can?t find it...
Thanks so far,

timbo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCWV0WG68ndDW+t7gRAu84AJ9nREWjNvS7oFZ7HdqmfoplPCpnvgCaAqAk
9cCZ1rfE0AD4pPpEYEXhyd0=
=bp+w
-END PGP SIGNATURE-

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


Re: FreeRADIUS version 1.0.2

2005-04-10 Thread Jim Seymour
"Jamal Taweel" <[EMAIL PROTECTED]> wrote:
> 
> Dear All,
> 
> Can anyone tell me, what are the bugs which are found in the previous
> versions that the new version overcomes them?
[snip]

Download the latest tarball (v1.0.2).  Unpack it.  Look in the "doc"
subdirectory.  You'll see a file named "ChangeLog."  Read it.  Then
you'll know.

Please tell your manglement the foolish disclaimers and warnings added
to all your email are both irritating and utterly worthless.  And
please turn off the HTML.  Thank you.

Jim
-- 
Note: My mail server employs *very* aggressive anti-spam
filtering.  If you reply to this email and your email is
rejected, please accept my apologies and let me know via my
web form at .

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


Re: FreeRADIUS version 1.0.2

2005-04-10 Thread Scott Edwards
On 4/10/05, Jamal Taweel <[EMAIL PROTECTED]> wrote:
SE> Are you looking for a change log?
> Yes. We have the two previous versions, they goes down from time to time
> without any touchable reasons.
> 

http://www.freeradius.org/cgi-bin/cvsweb.cgi/radiusd/doc/ChangeLog#diff

Start at This form allows you to request diff's between any two
revisions of a file. You may select a...

Select the two versions you want diffs from, and have at it.  I didn't
initally know where this is either.  I eventualy decided to see if
anything was in the online CVS, and found the changelog under the
docs.  If this still doesn't answer your question, and there's no bug
reportting info on it (maybe the developers are unaware of your
supposed issue altogether), tell us what you do know.

Thanks,


Scott

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


RE: FreeRADIUS version 1.0.2

2005-04-10 Thread Jamal Taweel
Yes. We have the two previous versions, they goes down from time to time
without any touchable reasons.
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Edwards
Sent: Sunday, April 10, 2005 9:22 AM
To: freeradius-users@lists.freeradius.org
Subject: Re: FreeRADIUS version 1.0.2

Are you looking for a change log?
Anyway to not send that footer? (IMO it's just whitenoise)

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




*
The contents of this email and any attachments are confidential. It is 
intended for the named recipient(s) only. If you have received this email 
in error please notify the system manager or  the sender immediately and 
do not disclose the contents to any one or make copies.
*
PALTEL E-Safety System scanned this email and found NO viruses, 
vandals or malicious content.
*
Should you need any information or clarifications regarding this system, 
please do not hesitate to contact our team at the IP Dep. 
<[EMAIL PROTECTED]>.
*

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


Re: FreeRADIUS version 1.0.2

2005-04-10 Thread Scott Edwards
Are you looking for a change log?
Anyway to not send that footer? (IMO it's just whitenoise)

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


FreeRADIUS version 1.0.2

2005-04-10 Thread Jamal Taweel








Dear All,

Can anyone tell me, what are the bugs which
are found in the previous versions that the new version overcomes them?

 

Thanks,

 








*
The contents of this email and any attachments are confidential. It is 
intended for the named recipient(s) only. If you have received this email 
in error please notify the system manager or  the sender immediately and 
do not disclose the contents to any one or make copies.
*
PALTEL E-Safety System scanned this email and found NO viruses, 
vandals or malicious content.
*
Should you need any information or clarifications regarding this system, 
please do not hesitate to contact our team at the IP Dep. 
<[EMAIL PROTECTED]>.
*