]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_check.c
Add a sample ACL
[openldap] / servers / slapd / schema_check.c
index 627eb7b615ad8c5f5099821a56ee162e75b14af4..6f7d993dd6df957bb0a6612c16438816953b08df 100644 (file)
@@ -36,6 +36,8 @@ entry_schema_check(
        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 */
@@ -68,8 +70,6 @@ entry_schema_check(
 
        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