Hi,
I am trying to implement Handler with username's starting with hello.
However it does not work. I attached our original (working) cfg file
(radius.cfg) and the one I am trying for handler that is not working
(handler.cfg). We have two special domains and one securid, and one DEFAULT
policy. I would like to add the 5th one that is usernames start with hello.
It always look into the first rule that is securid. It should see NO
@securid but it tries to authenticate using that. I both tried <Handler
Realm=securid> and the classical way <Realm securid> but it always use it.
It does not skip into <Handler User-Name=/^hello/> and the rest. I also
tried both <Handler Realm=securid> and <Handler>. Every combination... No
way. Basically it is
<Handler Realm=securid>
#also tried with <Realm securid>
AuthBy radius
blablabla
#</Realm>
</Handler>
<Handler Realm=domain1>
#also tried with <Realm domain1>
AuthBy SQL
blablabla
#</Realm>
</Handler>
<Handler Realm=domain2>
#also tried with <Realm domain2>
AuthBy SQL
blablabla
#</Realm>
</Handler>
<Handler User-Name=/^hello/>
AuthBy SQL
blablablabla extra blablablas
</Handler>
<Handler>
#rest of the users come here. NOT !
AuthBy SQL
blabla
</Handler>
<SessionDatabase SQL>
blabla
</SessionDatabase>
And the logfile is always auth by securid that is first handler/realm
Thu May 6 15:20:16 1999: INFO: Server started
Thu May 6 15:20:16 1999: DEBUG: Packet dump:
*** Received from xxxxxxxxxxxx port 1776 ....
Code: Access-Request
Identifier: 55
Authentic: zCDq<158>'<176><140><132>Vp<193><8><132>{*
Attributes:
User-Name = "1638924"
Password = "<198><16>Qok;]"
NAS-Identifier = xxxxxxxxxxxxx
NAS-Port = 28
NAS-Port-Type = Async
User-Service = Framed-User
Framed-Protocol = PPP
State = ""
Acct-Session-Id = "290796505"
Thu May 6 15:20:16 1999: DEBUG: Check if Handler Realm=securid should be
used to handle this request
Thu May 6 15:20:16 1999: DEBUG: Handling request with Handler
'Realm=securid'
Thu May 6 15:20:16 1999: DEBUG: Rewrote user name to 1638924
Thu May 6 15:20:17 1999: DEBUG: Query is: select NASIDENTIFIER, NASPORT,
ACCTSESSIONID from RADONLINE where USERNAME='1638924'
Thu May 6 15:20:17 1999: DEBUG: Handling with Radius::AuthRADIUS
Thu May 6 15:20:17 1999: DEBUG: Forwarding 1 to xxxxxxxxxxxxxxxxxx
Thu May 6 15:20:17 1999: DEBUG: Packet dump:
*** Sending to xxxxxxxxx port 1645 ....
radius.cfg
handler.cfg