- rc = dnNormalize2( NULL, &dn, &ndn );
- if( rc != LDAP_SUCCESS ) {
-#ifdef NEW_LOGGING
- LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
- "monitor DN \"" SLAPD_MONITOR_DN "\" is invalid\n" ));
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor DN \"" SLAPD_MONITOR_DN "\" is invalid\n",
- 0, 0, 0 );
-#endif
- return( -1 );
- }
-
- be = select_backend( &ndn , 0, 0 );
- free( ndn.bv_val );
-
- if ( be == NULL ) {
-#ifdef NEW_LOGGING
- LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
- "unable to get monitor backend\n" ));
-#else
- Debug( LDAP_DEBUG_ANY,
- "unable to get monitor backend\n", 0, 0, 0 );
-#endif
- return( -1 );
- }
-