Hello Janet -
Your configuration file looks fine, but when you run "radpwtst" you will need
to spell "Class" with an upper-case "C".
regards
Hugh
On Sun, 13 Aug 2000, Janet Del Mundo wrote:
> I'm trying to separate the accounting for prepaid users from the rest of
> the users. However, when I use Class attribute to do this, the
> Accounting-Request doesn't respond with the Class attribute from
> Access-Accept. So the accounting falls back to wrong accounting
> procedure. Am I doing something wrong here? Does radpwtst recognize the
> Class attribute?
>
>
> ------------------------------------------
> ./radpwtst -secret xxxx -user mikesanlite -password xxxx -auth_port
> 11900 -acct_port 1901
> sending Access-Request...
> OK
> sending Accounting-Request Start...
> OK
> sending Accounting-Request Stop...
> OK
>
> ./radpwtst -secret xxxx -user mikesanlite -password xxxx -auth_port
> 11900 -acct_port 1901 class="GCCSQL"
> No such attribute class
> sending Access-Request...
> OK
> No such attribute class
> sending Accounting-Request Start...
> OK
> No such attribute class
> sending Accounting-Request Stop...
> OK
>
> ------------------------------------------
>
> ------------------------------------------
>
> *** Sending to 127.0.0.1 port 1829 ....
> Code: Access-Accept
> Identifier: 151
> Authentic: 1234567890123456
> Attributes:
> Class = "GCCSQL"
> Idle-Timeout = 100
> Session-Timeout = 36000
> Framed-IP-Address = 255.255.255.254
>
> Sun Aug 13 03:15:46 2000: DEBUG: Packet dump:
> *** Received from 127.0.0.1 port 1829 ....
> Code: Accounting-Request
> Identifier: 152
> Authentic: .l<209><130><154>U<228><255>w<221><248>yk<177>J<20>
> Attributes:
> User-Name = "mikesanlite"
> Service-Type = Framed-User
> NAS-IP-Address = 203.63.154.1
> NAS-Port = 1234
> NAS-Port-Type = Async
> Acct-Session-Id = "00001234"
> Acct-Status-Type = Start
> ------------------------------------------
>
>
> <AuthBy SQL>
> Identifier SQL
> .
> .
> .
> </AuthBy>
>
> <AuthBy SQL>
> Identifier GCCSQL
> .
> .
> .
> AcctSQLStatement update USERS set SESSIONTIME = (SESSIONTIME -
>0%{Acct-Session-Time}) where IDENTIFIER = '%n'
>
> </AuthBy>
>
>
> <Handler Request-Type = Accounting-Request, Class = GCCSQL>
> AuthByPolicy ContinueAlways
> AuthBy GCCSQL
> </Handler>
>
> <Handler Request-Type = Accounting-Request>
> AuthByPolicy ContinueAlways
> AuthBy SQL
> </Handler>
>
>
> Any suggestions?
> Thanks,
> Janet
>
>
>
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.