+ Statslog( LDAP_DEBUG_STATS,
+ "conn=%lu op=%lu CMP dn=\"%s\" attr=\"%s\"\n",
+ op->o_connid, op->o_opid, pdn.bv_val,
+ ava.aa_desc->ad_cname.bv_val, 0 );
+
+ rc = backend_check_restrictions( NULL, conn, op, NULL, &text ) ;
+ if( rc != LDAP_SUCCESS ) {
+ send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
+ rc = 0;
+ goto cleanup;
+ }
+
+ rc = schema_info( &entry, &text );
+ if( rc != LDAP_SUCCESS ) {
+ send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
+ rc = 0;
+ goto cleanup;
+ }
+#endif /* SLAPD_SCHEMA_DN */
+ }
+
+ if( entry ) {
+ rc = compare_entry( conn, op, entry, &ava );
+ entry_free( entry );
+
+ send_ldap_result( conn, op, rc, NULL, text, NULL, NULL );
+
+ if( rc == LDAP_COMPARE_TRUE || rc == LDAP_COMPARE_FALSE ) {
+ rc = 0;
+ }
+
+ goto cleanup;
+ }
+
+ manageDSAit = get_manageDSAit( op );