From 2eb664f4816ce2a4da98b5484522023bb382fe5a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 2 Jul 2000 17:50:18 +0000 Subject: [PATCH] Add octetString syntax to undefined attribute type --- servers/slapd/schema_prep.c | 6 ++++++ servers/slapd/slap.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/servers/slapd/schema_prep.c b/servers/slapd/schema_prep.c index bb15ffba48..1bd2f942f4 100644 --- a/servers/slapd/schema_prep.c +++ b/servers/slapd/schema_prep.c @@ -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; diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 2445f5ff56..e2ddbacca3 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -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" -- 2.39.5