Re: Consuming card code

2008-02-28 Thread Juraj Bilic

Ive found the answer to my dilemma. With radiusmanager3 i set available online 
time to 1h 
and with acct packet subtract seconds from available online time. The main 
solution lies 
in two attributes: Acct-Status-Type = Interim-Update and Acct-Session-Time = 
.

thanks for all the support by repliers ;)


- Original Message 
From: Juraj Bilic <[EMAIL PROTECTED]>
To: freeradius-users@lists.freeradius.org
Sent: Wednesday, February 27, 2008 6:50:12 PM
Subject: Consuming card code



Im 
using 
freeradius-1.1.7 
on 
my 
remote 
unix 
machine 
and 
developing 
on 
my 
client 
.net 
application.
By 
now 
i 
succesfully 
made 
authorization 
and 
start/stop 
accounting 
request/responses 
(packet 
send/recieve 
logic).
With 
radiusManager3 
i 
generated 
card 
series, 
services 
.. 

Can 
i 
implement 
user 
login, 
consuming 
of 
card 
codes, 
etc. 
with 
only 
packets 
(acct) 
or 
im 
missing 
some 
crucial 
points? 

I 
hope 
that 
i 
(user, 
client) 
can 
make 
an 
behaviour 
of 
communicating 
with 
freeradius 
every 
10sec
and 
consuming 
10sec 
of 
currently 
selected 
card 
code.

thank 
you 
for 
your 
time,
Juraj



  
  
  

Never 
miss 
a 
thing.  
Make 
Yahoo 
your 
home 
page. 
http://www.yahoo.com/r/hs
-
List 
info/subscribe/unsubscribe? 
See 
http://www.freeradius.org/list/users.html





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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


Re: Consuming card code

2008-02-28 Thread Ivan Kalik
>
>The problem:
>There is a host that controls internet access for 25 different machines.
>For having internet access machine user must type prepaid code.
>  (there are 1000 generated prepaid valid codes)
>With one prepaid code user can use the internet for 1h.
>If user used only 20min of his current prepaid code he can use it again.
> on another machine (this code now gives 40min of internet access)
>
>My naive solution:
>Use freeradius on host and special .net app on every user machine
>to control everything.
>

Use freeradius total (sql)counter instead.

Ivan Kalik
Kalik Informatika ISP

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


Re: Consuming card code

2008-02-28 Thread Liran Tal
Hey Juraj,

I think that you are over-complicating things.
This is rather easy to implement, you simply need to create a pincode-auth
scenario and for limiting the time you can use Max-All-Session attribute.

Be sure to check daloRADIUS as a management platform for RADIUS and Hotspots
deployments (if you're working with SQL databases, MySQL specifically though
other
are supported too).

daloRADIUS -
http://sourceforge.net/projects/daloradius/

I'll be glad to be of help if you need assistance in implementing this kind
of
solution in your network.




On Thu, Feb 28, 2008 at 9:50 AM, Juraj Bilic <[EMAIL PROTECTED]> wrote:
>The problem:
>   There is a host that controls internet access for 25 different machines.
>   For having internet access machine user must type prepaid code.
> (there are 1000 generated prepaid valid codes)
>   With one prepaid code user can use the internet for 1h.
>   If user used only 20min of his current prepaid code he can use it again.
>on another machine (this code now gives 40min of internet access)
>
>My naive solution:
>   Use freeradius on host and special .net app on every user machine
>   to control everything.



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

Re: Consuming card code

2008-02-28 Thread Juraj Bilic
>
>> 
Can 
i 
implement 
user 
login, 
consuming 
of 
card 
codes, 
etc. 
with 
only 
packets 
(acct) 
>> 
or 
im 
missing 
some 
crucial 
points? 
>
>  
No 
idea.  
What 
"card 
codes" 
are 
you 
talking 
about?
>

The problem: 
There is a host that controls internet access for 25 different machines.
For having internet access machine user must type prepaid code.
  (there are 1000 generated prepaid valid codes)
With one prepaid code user can use the internet for 1h.
If user used only 20min of his current prepaid code he can use it again. 
 on another machine (this code now gives 40min of internet access)

My naive solution:
Use freeradius on host and special .net app on every user machine
to control everything. 

>> 
I 
hope 
that 
i 
(user, 
client) 
can 
make 
an 
behaviour 
of 
communicating 
with 
freeradius 
every 
10sec
>> 
and 
consuming 
10sec 
of 
currently 
selected 
card 
code.
>
>
You 
don't 
want 
to 
send 
accounting 
packets 
to 
the 
server 
every 
10s.
> It's 
a 
very 
bad 
idea.
>
>  
If 
you 
need 
10s 
granularity 
on 
accounting, 
use 
a 
local 
database.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

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


Re: Consuming card code

2008-02-27 Thread Alan DeKok
Juraj Bilic wrote:
> Can i implement user login, consuming of card codes, etc. with only packets 
> (acct) 
> or im missing some crucial points? 

  No idea.  What "card codes" are you talking about?

> I hope that i (user, client) can make an behaviour of communicating with 
> freeradius every 10sec
> and consuming 10sec of currently selected card code.

  You don't want to send accounting packets to the server every 10s.
It's a very bad idea.

  If you need 10s granularity on accounting, use a local database.

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