Issue 574 - Minor fixes in result.c
Summary: Minor fixes in result.c
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: 2000-06-07 09:41 UTC by christian.lorenz@suse.de
Modified: 2014-08-01 21:05 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 christian.lorenz@suse.de 2000-06-07 09:41:01 UTC
Full_Name: Christian Lorenz
Version: 2.0-devel
OS: linux-2.2.14
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.112.123.201)


In pkg/ldap/servers/slapd/result.c,v 1.93:

--- result.c.orig   Wed May 31 16:22:32 2000
+++ result.c    Wed Jun  7 12:05:58 2000
@@ -729,8 +729,13 @@
        }

        if ( ! access_allowed( be, conn, op, e, desc, NULL, ACL_READ ) ) {
+#ifdef SLAPD_SCHEMA_NOT_COMPAT
+           Debug( LDAP_DEBUG_ACL, "acl: access to attribute %s not allowed\n",
+               desc->ad_cname->bv_val, 0, 0 );
+#else
            Debug( LDAP_DEBUG_ACL, "acl: access to attribute %s not allowed\n",
                desc, 0, 0 );
+#endif
            continue;
        }

@@ -747,9 +752,15 @@
                if ( ! access_allowed( be, conn, op, e,
                    desc, a->a_vals[i], ACL_READ ) )
                {
+#ifdef SLAPD_SCHEMA_NOT_COMPAT
+                   Debug( LDAP_DEBUG_ACL,
+                       "acl: access to attribute %s, value %d not allowed\n",
+                       desc->ad_cname->bv_val, i, 0 );
+#else
                    Debug( LDAP_DEBUG_ACL,
                        "acl: access to attribute %s, value %d not allowed\n",
                        desc, i, 0 );
+#endif
                    continue;
                }

@@ -816,8 +827,13 @@
        }

        if ( ! access_allowed( be, conn, op, e, desc, NULL, ACL_READ ) ) {
+#ifdef SLAPD_SCHEMA_NOT_COMPAT
            Debug( LDAP_DEBUG_ACL, "acl: access to attribute %s not allowed\n",
-               desc, 0, 0 );
+               desc->ad_cname->bv_val, 0, 0 );
+#else
+           Debug( LDAP_DEBUG_ACL, "acl: access to attribute %s not allowed\n",
+               desc, 0, 0 );
+#endif
            continue;
        }

@@ -834,9 +850,15 @@
                if ( ! access_allowed( be, conn, op, e,
                    desc, a->a_vals[i], ACL_READ ) )
                {
+#ifdef SLAPD_SCHEMA_NOT_COMPAT
                    Debug( LDAP_DEBUG_ACL,
                        "acl: access to attribute %s, value %d not allowed\n",
-                       desc, i, 0 );
+                       desc->ad_cname->bv_val, i, 0 );
+#else
+                   Debug( LDAP_DEBUG_ACL,
+                       "acl: access to attribute %s, value %d not allowed\n",
+                       desc, i, 0 );
+#endif
                    continue;
                }

Comment 1 Kurt Zeilenga 2000-06-07 11:01:16 UTC
moved from Incoming to Development
Comment 2 Kurt Zeilenga 2000-06-07 11:03:37 UTC
changed notes
changed state Open to Closed
Comment 3 OpenLDAP project 2014-08-01 21:05:27 UTC
fixed