// -------------------------------------------------------------------
// Attempt to add a normal entry below the referral ancestor. We should
// encounter referral errors with referral setting set to throw.
// -------------------------------------------------------------------
DN userDN = new DN( "cn=alex karasulu,ou=apache,ou=users,ou=system" );
ServerEntry userEntry = new DefaultServerEntry( service.getSchemaManager(), userDN );
userEntry.add( "ObjectClass", "top", "person" );
userEntry.add( "sn", "karasulu" );
userEntry.add( "cn", "alex karasulu" );
try
{
service.getAdminSession().add( userEntry );
fail( "Should fail here throwing a ReferralException" );