acl_usage();
}
- if ( right != NULL && *right != '\0' ) {
#ifdef SLAPD_SCHEMA_COMPAT
+ if ( right != NULL && *right != '\0' ) {
b->a_aci_at = ch_strdup( right );
-#else
- b->a_aci_at = at_find( right );
-#endif
} else {
-#ifdef SLAPD_SCHEMA_COMPAT
b->a_aci_at = ch_strdup( SLAPD_ACI_DEFAULT_ATTR );
+ }
#else
+ if ( right != NULL && *right != '\0' ) {
+ b->a_aci_at = at_find( right );
+ } else {
b->a_aci_at = at_find( SLAPD_ACI_DEFAULT_ATTR );
-#endif
}
-#ifdef SLAPD_SCHEMA_COMPAT
if( b->a_aci_at == NULL ) {
fprintf( stderr,
"%s: line %d: aci attribute type undefined.\n",
acl_usage();
}
-#ifdef SLAPD_OID_DN_SYNTAX
if( strcmp( b->a_aci_at->sat_syntax_oid,
SLAPD_OID_DN_SYNTAX ) != 0 )
{
fname, lineno );
acl_usage();
}
-#endif /* SLAPD_OID_DN_SYNTAX */
-#endif /* SLAPD_SCHEMA_COMPAT */
+#endif
continue;
}
#endif /* SLAPD_ACI_ENABLED */