Issue 973 - openldap 1.2.11 + glibc 2.2.1 error: bad because of Invalid preceding regular expression
Summary: openldap 1.2.11 + glibc 2.2.1 error: bad because of Invalid preceding regular...
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-19 10:57 UTC by Manuel Guesdon
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manuel Guesdon 2001-01-19 10:57:08 UTC
Hello,

I've upgrade to glibc 2.2.1 (glibc-2.2.1-3mdk.i586.rpm) and openldap 1.2.11 (openldap-servers-1.2.11-15.i386.rpm).
Now, when I restart slapd, I get:

line 63 (access to dn="*,dc=(.*),dc=zero,dc=sh,ou=oxyroot"      attr=children   
by dn="cn=replication,ou=accounts,o=oxymium,ou=companies,ou=oxyroot" write      
by group="cn=super-admins,ou=groups,ou=oxyroot" write   by group="dc=zero,dc=sh,
ou=oxyroot" write       by group="cn=add-access,dc=zero,dc=sh,ou=oxyroot" write 
by group="dc=$1,dc=zero,dc=sh,ou=oxyroot" write by * read)
/etc/openldap/slapd.conf: line 63: regular expression "*,dc=(.*),dc=zero,dc=sh,o
u=oxyroot" bad because of Invalid preceding regular expression

Any hint ?

Thank you.

Manuel
--
______________________________________________________________________
Manuel Guesdon - Software Builders <mguesdon@sbuilders.com>



Comment 1 Kurt Zeilenga 2001-01-19 16:55:49 UTC
Yes, your ACLs contain invalid regexes.  In particular,
the leading stars likely should be preceeded by a ".".
See re_format(7) or other page detailing POSIX regexes
for details.

At 10:57 AM 1/19/01 +0000, ml@sbuilders.com wrote:
>Hello,
>
>I've upgrade to glibc 2.2.1 (glibc-2.2.1-3mdk.i586.rpm) and openldap 1.2.11 (openldap-servers-1.2.11-15.i386.rpm).
>Now, when I restart slapd, I get:
>
>line 63 (access to dn="*,dc=(.*),dc=zero,dc=sh,ou=oxyroot"      attr=children   
>by dn="cn=replication,ou=accounts,o=oxymium,ou=companies,ou=oxyroot" write      
>by group="cn=super-admins,ou=groups,ou=oxyroot" write   by group="dc=zero,dc=sh,
>ou=oxyroot" write       by group="cn=add-access,dc=zero,dc=sh,ou=oxyroot" write 
>by group="dc=$1,dc=zero,dc=sh,ou=oxyroot" write by * read)
>/etc/openldap/slapd.conf: line 63: regular expression "*,dc=(.*),dc=zero,dc=sh,o
>u=oxyroot" bad because of Invalid preceding regular expression
>
>Any hint ?
>
>Thank you.
>
>Manuel
>--
>______________________________________________________________________
>Manuel Guesdon - Software Builders <mguesdon@sbuilders.com>

Comment 2 Manuel Guesdon 2001-01-19 20:26:00 UTC
On Fri, 19 Jan 2001 08:55:49 -0800 Kurt D. Zeilenga <Kurt D. Zeilenga <Kurt@OpenLDAP.org>> wrote:

 >| Yes, your ACLs contain invalid regexes.  In particular,
 >| the leading stars likely should be preceeded by a ".".
 >| See re_format(7) or other page detailing POSIX regexes
 >| for details.

Thanks Kurt.
It was working without the "." in openldap v1.2.9 with glibc v?.?.?.

Seems to works well, now, after adding the "." .

Just to be sure: in such expression 
        dn=".*,ou=(.*),dc=aa,dc=bb"
Is $1 the first (.*) (the "ou" part) ?


Manuel

 >| At 10:57 AM 1/19/01 +0000, ml@sbuilders.com wrote:
 >| >I've upgrade to glibc 2.2.1 (glibc-2.2.1-3mdk.i586.rpm) and openldap 1.2.11 (openldap-servers-1.2.11-15.i386.rpm).
 >| >Now, when I restart slapd, I get:
 >| >
 >| >line 63 (access to dn="*,dc=(.*),dc=zero,dc=sh,ou=oxyroot"      attr=children   
 >| >by dn="cn=replication,ou=accounts,o=oxymium,ou=companies,ou=oxyroot" write      
 >| >by group="cn=super-admins,ou=groups,ou=oxyroot" write   by group="dc=zero,dc=sh,
 >| >ou=oxyroot" write       by group="cn=add-access,dc=zero,dc=sh,ou=oxyroot" write 
 >| >by group="dc=$1,dc=zero,dc=sh,ou=oxyroot" write by * read)
 >| >/etc/openldap/slapd.conf: line 63: regular expression "*,dc=(.*),dc=zero,dc=sh,o
 >| >u=oxyroot" bad because of Invalid preceding regular expression


--
______________________________________________________________________
Manuel Guesdon - Software Builders <mguesdon@sbuilders.com>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998



Comment 3 Kurt Zeilenga 2001-01-24 21:15:25 UTC
changed notes
changed state Open to Closed
Comment 4 OpenLDAP project 2014-08-01 21:06:13 UTC
user error