[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ACL, regex and Variable Substitution



Sorry !

I was using a shell script to setup my test configuration.
Of course it was replacing $2 $3 etc by the (empty) *shell* 
variables.

Ouch !

Within the script, I have replaced $2 etc by \$2 and now it works 
fine.

_Ace


> Hi,
> 
> I have the following ACL:
> 
> access to
>  dn="user=(.*),domain=(.*),server=(.*),service=(.*),oc=(.*),a=cc"
> 	by
>  group="group=admin,domain=$2,server=$3,service=$4,oc=$5,a=cc" write
> 	by self read
> 	by anonymous auth
> 
> In the logs, I get:
> ldbm_back_group: cannot find group:
> "GROUP=ADMIN,DOMAIN=,SERVER=,SERVICE=,OC=,APPLICATION=CC"
> 
> That means, substitution didn't work... or ?
> 
> I am using OpenLDAP 2.0.23
> 
> Cheers,
> ace
> 
> 
> 
> -- 
> Ace Suares, Internet Consultancy and Training
> Keizersgracht 132,      1015 CW AMSTERDAM, NL
> phone: 06 557 06 554    (+31 6 557 06 554) (voicebox)
> fax: 08 48 707 705      (+31 84 870 770 5)
> mailto:ace@suares.com   http://www.suares.com
> 
> 


-- 
Ace Suares, Internet Consultancy and Training
Keizersgracht 132,      1015 CW AMSTERDAM, NL
phone: 06 557 06 554    (+31 6 557 06 554) (voicebox)
fax: 08 48 707 705      (+31 84 870 770 5)
mailto:ace@suares.com   http://www.suares.com