[RADIATOR] Custom AuthBy Identifier not being picked up

Tim Jones tim.jones at fon.com
Tue May 21 06:50:07 CDT 2013


Hi,

I am creating a custom AuthBy and made a copy of the provided AuthTEST.pm
module following the documentation.

The module gets imported & loaded when radiator restarts, but if I try to
assign it an identifier I get error messages saying it can't be found,e.g.
----------------------------------------------------------------------------------------
<AuthBy FILE>
    Identifier users_file
</AuthBy>

<AuthBy MYMODULE>
    Identifer test_mod
</AuthBy>

<AuthBy GROUP>
    Identifier group
    AuthByPolicy ContinueWhileAccept
    AuthBy test_mod
    AuthBy users_file
</AuthBy>

<Handler>
    Identifier default
    AuthBy group
</Handler>
----------------------------------------------------------------------------------------
Tue May 21 12:40:21 2013 541542: DEBUG: AuthMYMODULE loaded
Tue May 21 12:40:21 2013 542564: WARNING: Could not find AuthBy clause with
Identifier test_mod
Tue May 21 12:40:21 2013 545893: DEBUG: Finished reading configuration file
'/etc/radiator/simple-rad.cfg'
Tue May 21 12:40:23 2013 090787: DEBUG: Reading dictionary file
'/etc/radiator/simple/dictionary'
Tue May 21 12:40:27 2013 501376: DEBUG: Creating authentication port
0.0.0.0:1645
Tue May 21 12:40:27 2013 501648: DEBUG: Creating accounting port
0.0.0.0:1646
Tue May 21 12:40:27 2013 501809: NOTICE: Server started: Radiator 4.11 on
VM-RADMOD
----------------------------------------------------------------------------------------

But when I put the AuthBy clause directly into the AuthBy GROUP, it works
just fine:

----------------------------------------------------------------------------------------
<AuthBy FILE>
    Identifier users_file
</AuthBy>

<AuthBy GROUP>
    Identifier group
    AuthByPolicy ContinueWhileAccept
    <AuthBy MYMODULE>
         Identifer test_mod
    </AuthBy>
    AuthBy users_file
</AuthBy>

<Handler>
    Identifier default
    AuthBy group
</Handler>
----------------------------------------------------------------------------------------
Tue May 21 12:39:49 2013 694468: DEBUG: Handling request with Handler '',
Identifier 'default'
Tue May 21 12:39:49 2013 694675: DEBUG:  Deleting session for test,
203.63.154.1, 1234
Tue May 21 12:39:49 2013 694806: DEBUG: Handling with Radius::AuthGROUP:
group
Tue May 21 12:39:49 2013 694938: INFO: AuthMYMODULE handle_request:
Received from 127.0.0.1 port 49037
Tue May 21 12:39:49 2013 695061: DEBUG: Radius::AuthGROUP:group  result:
ACCEPT,
Tue May 21 12:39:49 2013 695190: DEBUG: Handling with Radius::AuthFILE:
users_file
Tue May 21 12:39:49 2013 695372: DEBUG: Reading users file
/etc/radiator/simple/users
Tue May 21 12:39:49 2013 695594: DEBUG: Radius::AuthFILE looks for match
with test [test]
Tue May 21 12:39:49 2013 695864: DEBUG: Radius::AuthFILE ACCEPT: : test
[test]
Tue May 21 12:39:49 2013 696022: DEBUG: Radius::AuthGROUP:group users_file
result: ACCEPT,
Tue May 21 12:39:49 2013 696314: DEBUG: AuthBy GROUP result: ACCEPT,
Tue May 21 12:39:49 2013 696461: DEBUG: Access accepted for test


Any help & suggestions would be appreciated,

Many thanks & regards,

Tim Jones
*Technology & Quality
*
**
**
tim.jones at fon.com
Skype: Tim.Jones.Fon

C/ Quintanavides 15. Edificio 2, Planta 1ª
Parque Empresarial Vía Norte, de Metrovacesa
28050 Las Tablas. Madrid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20130521/35151bdd/attachment.html 


More information about the radiator mailing list