Attributes attributes = this.getPersonAttributes( snVal, cnVal );
ctx.createSubcontext( oldRdn, attributes );
// modify Rdn from cn=... to sn=...
String newRdn = "sn=" + snVal;
ctx.addToEnvironment( "java.naming.ldap.deleteRDN", "true" );
try
{
ctx.rename( oldRdn, newRdn );
fail( "Rename must fail, mandatory attirbute cn can not be deleted." );
}