[Users] access control list using avps
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Sep 29 12:03:57 CEST 2005
Hi Helge,
thanks for report. It should be fixed now on CVS - please note that the
public CVS gets updated with some delay.
regards,
bogdan
Helge Waastad wrote:
>Hi,
>I've added a new column to subscriber, int not null default '0'
>
>using this scheme:
>modparam("avpops","avp_aliases","acl=i:800")
>
>modparam("avpops","db_scheme",
>
>"scheme0:username_col=username;domain_col=domain;value_col=acl;value_type=integer;table=subscriber")
>
>When I try to load values,
>
>if (!avp_db_load("$from","$acl/$scheme0")){
> xlog("L_ERR","No ACL...");
> sl_send_reply("403","Forbidden - No ACL");
> return;
> };
>
>
>I get:
>
>ERROR:avpops:dbrow2avp: empty or wrong type for 'value' using scheme
>
>
>
>
>
>
More information about the Users
mailing list