bb.clear();
// Get the response
LdapMessageCodec response = readResponse( bb );
LdapResultCodec result = ((LdapResponseCodec)response).getLdapResult();
if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
{
if ( isDebugEnabled() )
{
System.out.println( "ModifyDn of Entry " + entry.getDn() + " was successful" );
}
return IMPORT_SUCCESS;
}
else
{
System.err.println( I18n.err( I18n.ERR_205, entry.getDn(), result.getErrorMessage() ) );
return IMPORT_ERROR;
}
}