mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Add octetString syntax to undefined attribute type
This commit is contained in:
parent
b1172dc5ac
commit
2eb664f481
@ -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;
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user