* in its ancestor, using the Core API without the ManageDsaIt flag.
*/
@Test
public void testSearchWithReferralAncestorCoreAPIWithoutManageDSAIt() throws Exception
{
CoreSession coreSession = getService().getAdminSession();
Dn dn = new Dn( "ou=nobody,ou=apache,ou=roles,o=Mnn,c=WW,ou=system" );
try
{
coreSession.search( dn, "(ObjectClass=*)", false );
fail();
}
catch ( LdapReferralException re )
{
int nbRefs = 0;