[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
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?
--
nick
on Tue, 10 Apr 2001, at 4:05pm +0800 X.D.Chen wrote:
> hi:
> 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"
> attrs=children,entry,uid
> by group="cn=Managers,dc=com,dc=cn" write
> by dn=".*" read
>
> lucky :P) by China, X.D.Chen
>
> -----Original Message-----
> ·¢¼þÈË: nicholas cole <nick@profile.com>
> ÊÕ¼þÈË: qmail-ldap@argus.pipeline.ch <qmail-ldap@argus.pipeline.ch>
> ÈÕÆÚ: 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)
> >
> >--
> >nick