* @throws Exception on error
*/
@Test
public void testModifyOnAdminByNonAdmin() throws Exception
{
LdifEntry akarasulu = getUserAddLdif();
getService().getAdminSession().add(
new DefaultEntry( getService().getSchemaManager(), akarasulu.getEntry() ) );
// Read the entry we just created using the akarasuluSession
Entry readEntry = getService().getAdminSession().lookup( akarasulu.getDn(), new String[]{ "userPassword"} );
assertTrue( Arrays.equals( akarasulu.get( "userPassword" ).getBytes(), readEntry.get( "userPassword" ).getBytes() ) );
Attribute attribute = new DefaultAttribute( "userPassword", "replaced" );
Modification mod = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute );