+ if( dn_normalize_case( ndn ) == NULL ) {
+ Debug( LDAP_DEBUG_ANY, "do_compare: invalid dn (%s)\n", ndn, 0, 0 );
+ send_ldap_result( conn, op, rc = LDAP_INVALID_DN_SYNTAX, NULL,
+ "invalid DN", NULL, NULL );
+ free( ndn );
+ ava_free( &ava, 0 );
+ return rc;
+ }
+
+ if( ( rc = get_ctrls( conn, op, 1 )) != LDAP_SUCCESS ) {