Hello Abdul,

On Jun 17,  8:44pm, Abdul Rehman Saeed wrote:
> Subject: (RADIATOR) static IP+ maximun sessions
> Dear All,
>
> Hi,
>
> Today I am very happy because I am succeeded to test radiator, I dial
> authenticate from radius (/etc/shadow)  and log  maintain on radius
> server and also in oracle server.
>
> It is working fine upto this ..
>
> Now I have three problems
>
> 1-  I have user named saeed I wants to allocate him static IP e.g.
> 210.56.8.106
>     each time whenever reconnects, he should got this IP. I have tried
> but not succeeded.
>     note: I am running radiator on solaris and use UNIX file /etc/shadow
> for authentication.
>
> 2- For an other user login name is  sdtfg    I wants to maximum session
> 3 (concurrent login session)

For 1 and 2, the answer is to have a flat file (or an SQL table) with the extra
attributes in it, something like this:


<Realm DEFAULT>
        <AuthBy FILE>
                # See below for example contents of users file
                Filename users
        </AuthBy>
</Realm

# This is used to authenticate users with Auth-Type=System:
<AuthBy UNIX>
        Identifier System
</AuthBy>

and in your users file:

# Most users just get authenticated from UNIX:
DEFAULT Auth-Type=System, Simultaneous-Use=1

# This user is authed by UNIX, and also gets a static IP address:
mrstatic        Auth-Type=System,Simultaneous-Use=1
        Framed-IP-Address=1.2.3.4

# This user is allowed to have 3 sessions:
sdtfg   Auth-Type=System,Simultaneous-Use=3



You can do very similar things with SQL instead of FILE

>
> 3-  Please look into accounting logs
>
> Thu Jun 17 14:49:00 1999
>         NAS-IP-Address = 210.56.8.100
>         NAS-Port = 9
>         NAS-Port-Type = Async
>         User-Name = "arsaeed"
>         Acct-Status-Type = Stop
>         Acct-Authentic = RADIUS
>         Service-Type = Framed-User
>         Acct-Session-Id = "00000033"
>         Framed-Protocol = PPP
>         Framed-IP-Address = 210.56.8.102
>         Acct-Input-Octets = 2338
>         Acct-Output-Octets = 151
>         Acct-Input-Packets = 28
>         Acct-Output-Packets = 7
>         Acct-Session-Time = 43
>         Acct-Delay-Time = 0
>         Timestamp = 929648940
>
> I am unable to understand Timestamp= 929648940
> for billing purpuse wants to use header      Thu Jun 17 14:49:00 1999
> how can I store "Thu Jun 17 14:49:00 1999"   in accounting table as time
> stamp  ....?
That timestamp is the number of seconds since Jan 1 1970. You can store it to
SQL in a different format using something like:

AcctColumnDef   TIME_STAMP,Timestamp,formatted-date,'%m %e %H:%M:%S %Y'

You must install the Perl TimeDate package from CPAN for this to work

More details in the reference manual.

>
> Is it possible to maintain log in flate file as in TACACS+   ..?   for
> example:

Yes, put something like this in your Realm clause:
AcctLogFileFormat %l %a %n ........

You can put whatever you like in the log file
More details in the reference manual.

(BTW, you will need the patched radius from
http://www.open.com.au/radiator/downloads/patches-2.13.1/radiusd for %l to work
in AcctLogFileFormat)


>
> Thu Jun 17 20:32:00 1999        210.56.8.40     dailydin        Async13
> async
> start   task_id=1784    service=ppp
> Thu Jun 17 20:32:02 1999        194.133.50.7    jilanee Async5  async/
> start
> task_id=944     timezone=UTC    service=ppp
> Thu Jun 17 20:32:03 1999        210.56.8.40     dailydin        Async13
> async
> update  task_id=1784    service=ppp     protocol=ip
> addr=210.56.9.106
> Thu Jun 17 20:32:13 1999        210.56.8.39     erichbr Async12 async
> stop
> task_id=576     service=ppp     protocol=ip     addr=210.56.9.87
> bytes_in
> =102573 bytes_out=689177        paks_in=1720    paks_out=1825
> elapsed_time=152
> 6
>
>
> Note: I am using this radius.cfg file, Please guide me in
> details.......  Advance Thanks.

Perhaps it is time to consider a support contract?



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to