]> git.sur5r.net Git - openldap/commitdiff
Resolve syntax errors created by previous -DSLAPD_SCHEMA_COMPAT work.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 29 Jan 2000 07:00:39 +0000 (07:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 29 Jan 2000 07:00:39 +0000 (07:00 +0000)
servers/slapd/aclparse.c

index a6c5abc4c3398e8e5bf2c67bf8324d4480900c05..74960b406f784da435d86a9aef2f06a5ed81cf6c 100644 (file)
@@ -476,21 +476,19 @@ parse_acl(
                                                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",
@@ -498,7 +496,6 @@ parse_acl(
                                                acl_usage();
                                        }
 
-#ifdef SLAPD_OID_DN_SYNTAX
                                        if( strcmp( b->a_aci_at->sat_syntax_oid,
                                                SLAPD_OID_DN_SYNTAX ) != 0 )
                                        {
@@ -507,8 +504,7 @@ parse_acl(
                                                        fname, lineno );
                                                acl_usage();
                                        }
-#endif /* SLAPD_OID_DN_SYNTAX */
-#endif /* SLAPD_SCHEMA_COMPAT */
+#endif
                                        continue;
                                }
 #endif /* SLAPD_ACI_ENABLED */