[Date Prev][Date Next] [Chronological] [Thread] [Top]

dn.exact is not known in <what> part of access clause (ITS#2782)



Full_Name: Peter Marschall
Version: 2.1.23
OS: Linux 2.4.x
URL: 
Submission from: (NULL) (217.236.102.108)


In OpenLDAP 2.1.23 "dn.exact" is not recognized as an alias to "dn.base" in the
<what>
part of an access clause.

The following patch brings slapd's behaviour in accordance with the slapd.access
man page:

--- servers/slapd/aclparse.c
+++ servers/slapd/aclparse.c    Sun Oct 19 18:30:11 2003
@@ -182,6 +182,9 @@
                                        } else if ( strcasecmp( style, "base" )
== 0 ) {
                                                a->acl_dn_style =
ACL_STYLE_BASE;
                                                ber_str2bv( right, 0, 1,
&a->acl_dn_pat );
+                                       } else if ( strcasecmp( style, "exact" )
== 0 ) {
+                                               a->acl_dn_style =
ACL_STYLE_EXACT;
+                                               ber_str2bv( right, 0, 1,
&a->acl_dn_pat );
                                        } else if ( strcasecmp( style, "one" )
== 0 ) {
                                                a->acl_dn_style =
ACL_STYLE_ONE;
                                                ber_str2bv( right, 0, 1,
&a->acl_dn_pat );

I don't know if the bug is also in 2.2beta / head.

Greetings
Peter