aci_bv_br_entry = BER_BVC("[entry]"),
aci_bv_br_all = BER_BVC("[all]"),
aci_bv_access_id = BER_BVC("access-id"),
+#if 0
aci_bv_anonymous = BER_BVC("anonymous"),
+#endif
aci_bv_public = BER_BVC("public"),
aci_bv_users = BER_BVC("users"),
aci_bv_self = BER_BVC("self"),
aci_bv_ip_eq = BER_BVC("IP="),
#ifdef LDAP_PF_LOCAL
aci_bv_path_eq = BER_BVC("PATH="),
+#if 0
aci_bv_dirsep = BER_BVC(LDAP_DIRSEP),
+#endif
#endif /* LDAP_PF_LOCAL */
aci_bv_group_class = BER_BVC(SLAPD_GROUP_CLASS),
}
/* use backend default access if no backend acls */
- if( be != NULL && be->be_acl == NULL ) {
+ if ( /* be != NULL && */ be->be_acl == NULL ) {
Debug( LDAP_DEBUG_ACL,
"=> access_allowed: backend default %s access %s to \"%s\"\n",
access2str( access ),
#ifdef LDAP_DEBUG
static void print_acl(Backend *be, AccessControl *a);
-static void print_access(Access *b);
#endif
static int check_scope( BackendDB *be, AccessControl *a );
void
acl_unparse( AccessControl *a, struct berval *bv )
{
- Access *b;
- char *ptr;
- int to = 0;
- struct berval abv;
+ Access *b;
+ char *ptr;
+ int to = 0;
bv->bv_val = aclbuf;
bv->bv_len = 0;
static void
print_acl( Backend *be, AccessControl *a )
{
- int to = 0;
- Access *b;
struct berval bv;
acl_unparse( a, &bv );