10139N/A+ char *textbuf, size_t textlen );
10139N/A * entry_schema_check - check that entry e conforms to the schema required
10139N/A return LDAP_NO_OBJECT_CLASS_MODS;
10139N/A+ rc = entry_naming_check( e, text, textbuf, textlen );
10139N/A /* check that the entry has required attrs for each oc */
10139N/A for ( i = 0; aoc->a_vals[i].bv_val != NULL; i++ ) {
10139N/A if ( (oc = oc_bvfind( &aoc->a_vals[i] )) == NULL ) {
10139N/A return structural_class( ocmod->sml_bvalues, sc, NULL,
10139N/A+ char *textbuf, size_t textlen )
10139N/A+ * Get attribute type(s) and attribute value(s) of our RDN
10139N/A+ if ( ldap_bv2rdn( &e->e_name, &rdn, (char **)&p,
10139N/A+ *text = "unrecongized attribute type(s) in RDN";
10139N/A+ return LDAP_INVALID_DN_SYNTAX;
10139N/A+ /* Check that each AVA of the RDN is present in the entry */
10139N/A+ /* FIXME: Should also check that each AVA lists a distinct type */
10139N/A+ for ( cnt = 0; (*rdn)[cnt]; cnt++ ) {
10139N/A+ AttributeDescription *desc = NULL;
10139N/A+ rc = slap_bv2ad( &ava->la_attr, &desc, &errtext );
10139N/A+ snprintf( textbuf, textlen, "%s (in RDN)", errtext );
10139N/A+ /* find the naming attribute */
10139N/A+ attr = attr_find( e->e_attrs, desc );
10139N/A+ "naming attribute '%s' is not present in entry",
10139N/A+ if( ava->la_flags & LDAP_AVA_BINARY ) {
10139N/A+ "value of naming attribute '%s' in unsupported BER form",
10139N/A+ if ( value_find( desc, attr->a_vals, &ava->la_value ) != 0 ) {
10139N/A+ "value of naming attribute '%s' is not present in entry",