]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/aclparse.c
Don't include portable.h. Headers can and should assume portable.h
[openldap] / servers / slapd / aclparse.c
index e52cbde4100e0e9e9cda8f3eada51c94cc886f69..e47a00380a858ec266e7aad482e982bdf08dec10 100644 (file)
@@ -293,9 +293,10 @@ parse_acl(
 
        } else {
 
-                if (ldap_debug&LDAP_DEBUG_ACL)
+#ifdef LDAP_DEBUG
+                if (ldap_debug & LDAP_DEBUG_ACL)
                     print_acl(a);
-
+#endif
        
                if ( a->acl_access == NULL ) {
                        fprintf( stderr,
@@ -426,6 +427,7 @@ print_access( struct access *b )
        } else if ( b->a_dnattr != NULL ) {
                fprintf( stderr, " dnattr=%s", b->a_dnattr );
        }
+#ifdef SLAPD_ACLGROUPS
         else if ( b->a_group != NULL ) {
                 fprintf( stderr, " group: %s", b->a_group );
                 if ( b->a_objectclassvalue )
@@ -433,6 +435,7 @@ print_access( struct access *b )
                 if ( b->a_groupattrname )
                         fprintf( stderr, " groupAttrName: %s", b->a_groupattrname );
         }
+#endif
        fprintf( stderr, "\n" );
 }