[Date Prev][Date Next]
Re: »Ø¸´: acl question
Am I understanding this correctly.. The $1 stands for what is matched by the
first regular expression in the "access to" line, and $2 stands for the second
regex in that line?
on Tue, 10 Apr 2001, at 4:05pm +0800 X.D.Chen wrote:
> the $1 and $2 just refer the dc=([^,]+) and dc=([^,]+), below is a full
> example for this :
> access to dn="ou=People,dc=com,dc=cn"
> by group="cn=Managers,dc=com,dc=cn" write
> by dn=".*" read
> lucky :P) by China, X.D.Chen
> -----Original Message-----
> ·¢¼þÈË: nicholas cole <firstname.lastname@example.org>
> ÊÕ¼þÈË: email@example.com <firstname.lastname@example.org>
> ÈÕÆÚ: 2001Äê4ÔÂ10ÈÕ 15:55
> Ö÷Ìâ: acl question
> >Can anyone explain to me what the $1 and $2 are for/how they work?
> >access to dn="ou=People,dc=([^,]+),dc=([^,]+)"
> > attrs=children,entry,uid
> > by group="cn=Managers,dc=$1,dc=$2" write
> > by dn=".*" read
> >(I copied that from http://www.openldap.org/faq/data/cache/52.html)