[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slaptest conversion of acl regex's drops backslashes
- To: openldap-technical@openldap.org
- Subject: slaptest conversion of acl regex's drops backslashes
- From: Nick Milas <nick@eurobjects.com>
- Date: Tue, 05 Jun 2012 17:51:55 +0300
- User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
Hi,
I used slaptest to convert a set of ACLs from standard to dynamic format
using slaptest. I noticed that backslashes (used to escape characters)
in regexes are silently dropped after conversion.
For example:
access to
dn.regex="^dc=\b\d{1,3}\.\d{1,3}\.\d{1,3}\b\.in-addr\.arpa,ou=dns,dc=example,dc=com$"
by group.exact="cn=Admins,ou=Groups,dc=example,dc=com" write
becomes:
olcAccess: {xx}to
dn.regex="^dc=\b\d{1,3}\.\d{1,3}\.\d{1,3}\b\.in-addr\.arpa,ou=dns,dc=example,dc=com$"
by group/groupOfNames/member.exact="cn=admins,ou=groups,dc=noa,dc=gr" write
Is this expected behavior? Or am I doing something wrong?
Please advise.
Thanks,
Nick