[OpenSIPS-Users] Feature request: additional authorization conditions in auth_db

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 5 15:23:21 CET 2010


Hi Alexander,

auth_xxxx module simply does only the digest authentication. Whatever 
additional check you may need can be done from the script, if auth is 
passed. if you need some extra info from the subscriber table, you can 
use the "load_credentials" param to fetch it in script.

Regards,
Bogdan

Alexander wrote:
>   Hello all!
>
>   I  have a question about authorization: is there ability to specify additional
> conditions? For example, like it's done in postfix?
>   We  check  only username and password in OpenSIPS, but there may be additional
> info,  like  "status" (active, suspended, blocked, etc...). So, if name/password
> match, but status is not "active" - authorization fails.
>
>   It may look like this in config file:
>
>   modparam("auth_db", "additional_conditions", "fiStatus = 200").
>
>   As   I   see,   now   this   feature  is not supported. If it's not planned to
> develop, I can try to  implement this feature  and  provide  patch  or  modified
> source  files. Will it be useful for someone else but me? :)
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list