From: Kurt Zeilenga Date: Fri, 8 Feb 2002 19:21:58 +0000 (+0000) Subject: Bypasss regex for access to dn="" ACL X-Git-Tag: OPENLDAP_REL_ENG_2_0_23~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93094c34e0cf7d78ca93138d330ed7ae76887f37;p=thirdparty%2Fopenldap.git Bypasss regex for access to dn="" ACL --- diff --git a/CHANGES b/CHANGES index 486bc96455..21e793cb2b 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/build/version b/build/version index b6673c6522..3e61af0c59 100644 --- a/build/version +++ b/build/version @@ -1 +1 @@ -2.0.22-Release +2.0.23-Release diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 524cd25293..9f71eb1ce8 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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