]> git.sur5r.net Git - openldap/commitdiff
more about matchedDN in back-meta (ITS#3944)
authorPierangelo Masarati <ando@openldap.org>
Thu, 18 Aug 2005 14:55:28 +0000 (14:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 18 Aug 2005 14:55:28 +0000 (14:55 +0000)
servers/slapd/back-meta/search.c

index 570d9deb5f0e10eb852b26cc2a77c6c273a3aeb9..ce7d3d9a6fa3bf81fda7a2916a594f07096b11e6 100644 (file)
@@ -320,8 +320,20 @@ meta_back_search( Operation *op, SlapReply *rs )
 #endif
 
        if ( initial_candidates == 0 ) {
+               /* NOTE: here we are not sending any matchedDN;
+                * this is intended, because if the back-meta
+                * is serving this search request, but no valid
+                * candidate could be looked up, it means that
+                * there is a hole in the mapping of the targets
+                * and thus no knowledge of any remote superior
+                * is available */
+               Debug( LDAP_DEBUG_ANY, "%s meta_back_search: "
+                       "base=\"%s\" scope=%d: "
+                       "no candidate could be selected\n",
+                       op->o_log_prefix, op->o_req_dn.bv_val,
+                       op->ors_scope );
+
                send_ldap_error( op, rs, LDAP_NO_SUCH_OBJECT, NULL );
-               /* FIXME: find a way to look up the best match */
 
                rc = LDAP_NO_SUCH_OBJECT;
                goto finish;