[OpenSIPS-Users] radius_www_authorize not registered?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 11 11:12:27 CET 2008


Hi Andrew,

Note the function takes only one parameter (realm). See:
    
http://www.opensips.org/html/docs/modules/1.4.x/auth_radius.html#id2516017

This is why your script function does not match the module function.

Regards,
Bogdan

Andrew Yager wrote:
> Hi,
>
> I'm currently implementing Radius auth and am getting a parsing syntax  
> error.
>
> Relevant lines are:
>
> loadmodule "auth.so"
> loadmodule "auth_db.so"
> loadmodule "auth_radius.so"
>
> [snip]
>
> modparam("auth_radius", "radius_config", "/etc/radiusclient-ng/ 
> radiusclient.conf")
>
> [snip]
>
> if (is_method("REGISTER"))
>          {
>                  # authenticate the REGISTER requests (uncomment to  
> enable auth)
>                  if (!radius_www_authorize("", "subscriber")) {
>                          www_challenge("", "0");
>
> and the error is:
>
> Nov 11 11:06:16 [22568] CRITICAL:core:yyerror: parse error in config  
> file, line 368, column 35-36: unknown command, missing loadmodule?
>
> Nov 11 11:06:16 [22568] ERROR:core:main: bad config file (1 errors)
>
>
> which corresponds with the radius_www_authorize message.
>
> Does anyone have any suggestions?
>
> Thanks,
> Andrew
>
> --
> Andrew Yager, Managing Director   (MACS BCompSc MCP)
> Real World Technology Solutions Pty Ltd
> ph: 1300 798 718 or (02) 9037 0500
> fax: (02) 9037 0591 mob: 0405 152 568
> http://www.rwts.com.au/ or http://www.stonebridgecomputing.com.au/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list