[OpenSER-Users] RADIUS and Local database lookup on register

Daniel-Constantin Mierla daniel at voice-system.ro
Wed Jul 18 09:17:38 CEST 2007


Hello,

yes, it should be possible without troubles.

Cheers,
Daniel


On 07/15/07 11:17, liran tal wrote:
> Hey everyone,
>
> I was wondering if it's possible to combine the two methods of lookup
> so that a user can authenticate to both radius and local database (on 
> the one
> that he is defined).
>
> to authenticate via radius it is done in my register section like this:
>
>    if (!radius_www_authorize(""))
>     {
>         www_challenge("","0");
>         exit;
>     };
>
> and so I was wondering if it's possible to do something like this:
>
>    if ( (!www_authorize("","subscriber")) || (!radius_www_authorize("")) )
>     {
>         www_challenge("","0");
>         exit;
>     };
>
>
>
>
> Thanks,
> Lir.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>   




More information about the sr-users mailing list