[RADIATOR] Multiple AuthBy inside an Handler
Frank Danielson
FDanielson at csky.com
Wed Jul 6 08:01:55 CDT 2016
Hi Marco-
Take a look at AuthByPolicy in section 5.27.1 of the manual. The default behavior is-
• ContinueWhileIgnore
This is the default. Continue trying to authenticate until either Accept, Challenge or Reject
Because the first AuthBy is handling Start messages it satisfies the handler and the second AuthBy is not called.
You could set AuthByPolicy ContinueAlways in the Handler to always execute all of the AuthBy clauses.
[cid:A5561F0C-29ED-4FB5-B132-7DDD0D907642]
Frank Danielson | Chief Technology Officer
• fdanielson at csky.com<applewebdata://B42CE82B-00AD-4466-A1C0-45CE1FB8AEBB/notifications@csky.com>
On Jul 6, 2016, at 6:45 AM, Marco Marino <marino.mrc at gmail.com<mailto:marino.mrc at gmail.com>> wrote:
Hi, I'm trying to adjust a configuration problem on an old server that uses radiator.
Actually I have:
<Handler Called-Station-Id = PPPoE1, Acct-Status-Type=Start>
AuthBy auth1
AuthBy auth2
SessionDatabase SDBpppoe_start
</Handler>
<AuthBy SQL>
Identifier auth1
AccountingStartsOnly
DBSource dbi:mysql:radius:X.Y.Z.W
DBUsername radius
DBAuth xxxxxxxx
DBSource dbi:mysql:radius:X.Y.Z.K
DBUsername radius
DBAuth yyyyyyy
AuthSelect
AcctSQLStatement update SUBSCRIBERS_PPPOE set AUTHCOUNTER=AUTHCOUNTER+1 where USERNAME='%n'
</AuthBy>
<AuthBy SQL>
Identifier auth2
DBSource dbi:mysql:radius:a.b.c.d <- Different db respect to auth1!!
DBUsername radius
DBAuth xxxxxxxxx
AccountingTable ACCOUNTING
DateFormat %Y-%m-%d %T
AcctColumnDef USERNAME,User-Name
AcctColumnDef TIME_STAMP,Timestamp,integer-date
AcctColumnDef ACCTSTATUSTYPE,Acct-Status-Type
AcctColumnDef ACCTDELAYTIME,Acct-Delay-Time,integer
AcctColumnDef ACCTINPUTOCTETS,Acct-Input-Octets,integer
AcctColumnDef ACCTOUTPUTOCTETS,Acct-Output-Octets,integer
AcctColumnDef ACCTSESSIONID,Acct-Session-Id
AcctColumnDef ACCTSESSIONTIME,Acct-Session-Time,integer
AcctColumnDef ACCTTERMINATECAUSE,Acct-Terminate-Cause,
AcctColumnDef NASIDENTIFIER,NAS-Identifier
AcctColumnDef NASPORT,NAS-Port,integer
AcctColumnDef FRAMEDIPADDRESS,Framed-IP-Address, char
HandleAcctStatusTypes Start,Stop,Alive
</AuthBy>
Actually auth2 Doesn't write Start request in the Db. It works only for Stop and Alive. Please, someone can help me?
Thank you
_______________________________________________
radiator mailing list
radiator at open.com.au<mailto:radiator at open.com.au>
http://www.open.com.au/mailman/listinfo/radiator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20160706/0d6ace22/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 59053906-B35C-4BA1-B47B-E3F487589749[1].jpg
Type: image/jpeg
Size: 11586 bytes
Desc: 59053906-B35C-4BA1-B47B-E3F487589749[1].jpg
Url : http://www.open.com.au/pipermail/radiator/attachments/20160706/0d6ace22/attachment-0001.jpg
More information about the radiator
mailing list