Strings.getBytesUtf8( newPassword ) );
Modification passwordMod = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE,
newPasswordAttribute );
Attribute principalAttribute = new DefaultAttribute(
schemaManager.lookupAttributeTypeRegistry( KerberosAttribute.KRB5_PRINCIPAL_NAME_AT ),
forPrincipal.getName() );
Modification principalMod = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE,
principalAttribute );
Entry forPrincipalEntry = StoreUtils.findPrincipalEntry( bySession, searchBaseDn, forPrincipal.getName() );