[SR-Users] Selective load_credentials in auth_db

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 11 12:56:50 CET 2013


On 11/12/13 11:33, Alex Balashov wrote:
> On 12/11/2013 05:31 AM, Alex Balashov wrote:
>> I have some extra columns to load from the 'subscriber' table':
>>
>>     modparam("auth_db", "load_credentials",
>>        "$avp(s:fruit_id)=fruit_id");
>>
>> Is there any way to get auth_db to only load this column for one realm
>> and not another?  I use multiple realms (tables) and one of them doesn't
>> have this column.
>
> Well, I guess in the terminology of the documentation, I meant "domain":
>
>        if(!auth_check("$td", "thedomain", "1")) {
>
No such feature -- you can use sqlops instead of load credentials at the 
expense of extra sql query. Or write the code for it.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list