]> git.sur5r.net Git - openldap/commitdiff
Add octetString syntax to undefined attribute type
authorKurt Zeilenga <kurt@openldap.org>
Sun, 2 Jul 2000 17:50:18 +0000 (17:50 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 2 Jul 2000 17:50:18 +0000 (17:50 +0000)
servers/slapd/schema_prep.c
servers/slapd/slap.h

index bb15ffba48db74830df06de3e111d4e48b9486fb..1bd2f942f4ec156b5f7fddc05899e27e7c58d369 100644 (file)
@@ -256,6 +256,12 @@ schema_prep( void )
                }
        }
 
+       slap_at_undefined.sat_syntax = syn_find( SLAPD_OCTETSTRING_SYNTAX );
+       if( slap_at_undefined.sat_syntax == NULL ) {
+               fprintf( stderr,
+                       "No octetString syntax \"" SLAPD_OCTETSTRING_SYNTAX "\"\n" );
+               return LDAP_INVALID_SYNTAX;
+       }
        slap_schema.si_at_undefined = &slap_at_undefined;
 
        ++schema_init_done;
index 2445f5ff564faac5f128837c3b0fb3e8259f4fc7..e2ddbacca319c2fe8f25243f4708856bd43a6dbf 100644 (file)
@@ -107,6 +107,8 @@ LDAP_BEGIN_DECL
 #define SLAPD_ACI_SYNTAX               "1.3.6.1.4.1.4203.666.2.1"
 #define SLAPD_ACI_ATTR                 "OpenLDAPaci"
 
+#define SLAPD_OCTETSTRING_SYNTAX "1.3.6.1.4.1.1466.115.121.1.40"
+
 /* change this to "OpenLDAPset" */
 #define SLAPD_ACI_SET_ATTR             "template"