EntryAttribute attribute = new DefaultClientAttribute( "userPassword", "replaced" );
List<Modification> mods = new ArrayList<Modification>();
Modification mod = new ClientModification( ModificationOperation.REPLACE_ATTRIBUTE, attribute );
mods.add( mod );
DN userDn = new DN( "uid=akarasulu,ou=users,ou=system" );
userDn.normalize( service.getSchemaManager().getAttributeTypeRegistry().getNormalizerMapping() );
LdapPrincipal principal = new LdapPrincipal( userDn, AuthenticationLevel.SIMPLE );