Bypasss regex for access to dn="" ACL

This commit is contained in:
Kurt Zeilenga 2002-02-08 19:21:58 +00:00
parent 2ec408e35a
commit 93094c34e0
3 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,11 @@
OpenLDAP 2.0 Change Log
OpenLDAP 2.0.23 Engineering
Fixed slapd moddn acl bug (ITS#1562) (ITS#1582)
Fixed slapd acl regex (to dn="") portability bug (ITS#1579)
Documentation
Fixed a number of typos (ITS#1578)
OpenLDAP 2.0.22 Release
Fixed slapd passwd modify referral bug
Fixed back-ldbm index threading bug

View file

@ -1 +1 @@
2.0.22-Release
2.0.23-Release

View file

@ -156,7 +156,12 @@ parse_acl(
|| strcasecmp( style, "regex" ) == 0 )
{
a->acl_dn_style = ACL_STYLE_REGEX;
if ( strcmp(right, "*") == 0
if ( *right == '\0' ) {
a->acl_dn_style = ACL_STYLE_BASE;
a->acl_dn_pat = ch_strdup( right );
} else if ( strcmp(right, "*") == 0
|| strcmp(right, ".*") == 0
|| strcmp(right, ".*$") == 0
|| strcmp(right, "^.*") == 0