AttributeDescription *ad_objectClass = slap_schema.si_ad_objectClass;
int extensible = 0;
+ *text = textbuf;
+
/* check single-valued attrs for multiple values */
for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
/* there should be at least one value */
if( is_at_single_value( a->a_desc->ad_type ) &&
a->a_vals[1] != NULL )
{
- char *type = a->a_desc->ad_cname->bv_val;
+ char *type = a->a_desc->ad_cname.bv_val;
snprintf( textbuf, textlen,
"attribute '%s' cannot have multiple values",
e->e_dn, textbuf, 0 );
#endif
- *text = textbuf;
return LDAP_CONSTRAINT_VIOLATION;
}
}
if( !global_schemacheck ) return LDAP_SUCCESS;
- *text = textbuf;
-
/* find the object class attribute - could error out here */
if ( (aoc = attr_find( e->e_attrs, ad_objectClass )) == NULL ) {
#ifdef NEW_LOGGING
for ( a = e->e_attrs; a != NULL; a = a->a_next ) {
int ret = oc_check_allowed( a->a_desc->ad_type, aoc->a_vals );
if ( ret != LDAP_SUCCESS ) {
- char *type = a->a_desc->ad_cname->bv_val;
+ char *type = a->a_desc->ad_cname.bv_val;
snprintf( textbuf, textlen,
"attribute '%s' not allowed",
return LDAP_SUCCESS;
}
-
/*
* All operational attributions are allowed by schema rules.
*/