]> git.sur5r.net Git - openldap/commitdiff
add si_syn_octetString to keep syntax load checks in one place.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 30 Mar 2002 01:07:20 +0000 (01:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 30 Mar 2002 01:07:20 +0000 (01:07 +0000)
servers/slapd/schema_prep.c
servers/slapd/slap.h

index 65e0f3db6232d28af61ef95676fe074865d0af75..7893b884afa39e478cac43616246e3075bb8aded 100644 (file)
@@ -583,6 +583,8 @@ static struct slap_schema_syn_map {
        char *sssm_name;
        size_t sssm_offset;
 } syn_map[] = {
+       { "1.3.6.1.4.1.1466.115.121.1.40",
+               offsetof(struct slap_internal_schema, si_syn_octetString) },
        { "1.3.6.1.4.1.1466.115.121.1.12",
                offsetof(struct slap_internal_schema, si_syn_distinguishedName) },
        { "1.3.6.1.4.1.1466.115.121.1.27",
@@ -703,12 +705,7 @@ slap_schema_check( void )
                }
        }
 
-       slap_at_undefined.sat_syntax = syn_find( SLAPD_OCTETSTRING_SYNTAX );
-       if( slap_at_undefined.sat_syntax == NULL ) {
-               fprintf( stderr, "slap_schema_check: "
-                       "No octetString syntax \"" SLAPD_OCTETSTRING_SYNTAX "\"\n" );
-               return LDAP_INVALID_SYNTAX;
-       }
+       slap_at_undefined.sat_syntax = slap_schema.si_syn_distinguishedName;
        slap_schema.si_at_undefined = &slap_at_undefined;
 
        for( i=0; ad_map[i].ssam_name; i++ ) {
index 3f8da8c81d3e6ffd8c0deff38749f158691a72ac..146626b628a24a374ab890f5a9753d7ea8e28ece 100644 (file)
@@ -636,6 +636,7 @@ struct slap_internal_schema {
        MatchingRule    *si_mr_integerMatch;
 
        /* Syntaxes */
+       Syntax          *si_syn_octetString;
        Syntax          *si_syn_distinguishedName;
        Syntax          *si_syn_integer;
 };