- pdn = NULL;
- rc = dnPretty( NULL, &dn, &pdn );
- if ( rc != LDAP_SUCCESS ) {
-#ifdef NEW_LOGGING
- LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
- "monitor DN \"%s\" is invalid\n",
- dn.bv_val ));
-#else
- Debug( LDAP_DEBUG_ANY,
- "monitor DN \"%s\" is invalid\n",
- dn.bv_val, 0, 0 );
-#endif
- free( dn.bv_val );
- return( -1 );
- }
- monitor_subsys[ i ].mss_dn = pdn;
-
- pdn = NULL;
- dnNormalize( NULL, &dn, &pdn );
+ rc = dnPrettyNormal( NULL, &dn, &monitor_subsys[ i ].mss_dn,
+ &monitor_subsys[ i ].mss_ndn );
+ free( dn.bv_val );