- if ( b2 == NULL ) {
- b2 = be;
-
-#if 0
- /* causes ITS#4986: a catchall relay
- * database with empty suffix points
- * to another database; operations
- * directed to a specific database
- * fail if manageDSAit is set.
- * Not clear what's the purpose
- * of this test */
- if ( manageDSAit && len == dnlen &&
- !SLAP_GLUE_SUBORDINATE( be ) )
- {
- continue;
- }
-#endif
-
- } else {
- /* If any parts of the tree are glued, use the first
- * match regardless of manageDSAit. Otherwise use the
- * last match.
- */
- if( !( SLAP_DBFLAGS( be ) & ( SLAP_DBFLAG_GLUE_INSTANCE |
- SLAP_DBFLAG_GLUE_SUBORDINATE )))
- b2 = be;
- }
- return b2;