.. _updates:

Updates
-------

.. warning:: Before updating, please assure, that you have a backup of your encryption key and 
   also of your database. Having a backup of your ``linotp.ini`` file is also a good idea!

Updating from LinOTP 2.5.1 to LinOTP 2.5.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Updating a deb install
......................

With version 2.5.2 the naming of some packages changed:

========================== =============================
old name in version 2.5.1  new name in version 2.5.2
========================== =============================
linotpuseridresolver       linotp-useridresolver
linotpuseridresolveree     linotp-useridresolver-ee
linotpdoc                  linotp-doc
smsprovider                linotp-smsprovider
========================== =============================

Transition packages with the old names are used to perform the update.

You need to issue the following command::

   dpkg -i linotpuseridresolver_2.5.2-1_all.deb \
           linotpuseridresolveree_2.5.2-1_all.deb \
           linotpdoc_2.5.2-1_all.deb \
           smsprovider_2.5.2-1_all.deb \
           linotp_2.5.2-1_all.deb \
           linotp-ee_2.5.2-1_all.deb \ 
           linotp-useridresolver_2.5.2-1_all.deb \
           linotp-useridresolver-ee_2.5.2-1_all.deb \
           linotp-doc_2.5.2-1_all.deb \
           linotp-smsprovider_2.5.2-1_all.deb 

Afterwards you can remove the old packages::

   dpkg -r linotpdoc linotpuseridresolver linotpuseridresolveree smsprovider

Updating a pip install
......................

Issue the following command to update your pip installation (:ref:`pip_install`)::
   
   pip install -upgrade linotp

Then upgrade the enterprise edition components. You need to download the latest version from
the customer portal and issue the commands::
   
   pip install --upgrade /path/to/LinOTP-EE-2.5.2.tar.gz
   pip install --upgrade /path/to/LinOtpUserIdResolverEE-2.5.2.tar.gz
   pip install --upgrade /path/to/LinOtpDoc-2.5.2.tar.gz
   pip install --upgrade /path/to/Smsprovider-2.5.2.tar.gz

Changelog
.........


**Dokumentation**

  * Added documentation for MS SQL server support.
  * Added howto for forwarding RADIUS request depending on LDAP group membership.
  * Added Yubikey documentation for Yubikey NANO.

**LinOTP Server**
  
  * Added dynamic token modules. All tokens can now be loaded dynamically.
  * Added policy import and export.
  * Added possibility to display action history in selfservice.
  * Added new Token: Yubikey in orignial yubikey mode (44 characters) to authenticate with the yubico online cloud service.
  * Added a script (linotp-pip-update) to update a pip installation.
  * Added authentication to ocra controller.
  * Added the possibility to give the CA certificate with the LDAP Resolver when using LDAPS.
  * Added univention UCS / LinOTP documentation.
  * Added users and resolvers to policies in selfservice, authentication, enrollment and authorization.
  * Added a policy checker to the WebUI.
  * Assign Token by OTP value in selfservice.
  * Implemented additional API to to a get_serial_by_otp in selfservice.
  * Improved policies: exclude clients.
  * Improved PSKC import to import OCRA suite.
  * Increase font size (style italic) to make it easier to assign a token to a user.  
  * Limit size of realm and resolver dialogs. If hundret resolvers or realms are defined, the dialog is too big.
  * Make the cookie a secure cookie, means it must be transferred via SSL
  * Performance fix - reduce userid lookup.
  * Add poissibility to set maximum auth count and validity period.
  * The mobile number (instead of phone) will now be used in selfservice for SMS token.
      
  * closed: More detailed information when the SMS is sent via /validate/check of /validate/smspin.
  * closed: The preset of the mobile number for an SMS token is now contained in the token.mako file.
  * closed: The user was not able to authenticate to selfservice.
  * closed: Deprecation Information about searching tokens.
  * closed: Use SecureFormatter in linotp.ini.
  * closed: The sms text from the policy is used to send the SMS.
  * closed: We require python 2.6.
  * closed: Make sure that genkey is in defined range.
  * Renamed the webprovissionOCRA to activateQR.
  * Reverted to the timeStepping=30 for the setup.
  
  * fixed: Correct audit entry, when the userpassword (otppin=1) is wrong.
  * fixed: Added a search button to flexigrid.
  * fixed: Added SecureFormatter to be able to remove non printable characters from the log args
  * fixed: The audit trail does not show entries with sqlalchemy 0.8.0
  * fixed: The setting of the OCRA PIN does not work in the WebUI.
  * fixed: Return space instead of empty string in case of MS SQL server
  * fixed: Problems with redundant MS SQL server.
  * fixed: Problem, that an admin was not able to view the users in the realm he has rights to.
  * fixed: The broken FileAudit module.
  * fixed: The possiblity to do cross site scripting in the doc controller. (serve documentation statically)
  * fixed: Problems in token search.
  * fixed: User enumeration with validate/smsping.
  * fixed: Tokeniterator exact user match.
  * fixed: Permissions for SSL privkey and who.ini.
  * fixed: The system settings (WebUI) are not stored, if data on another tab is missing.
  * fixed: OCRA bug for missing leading zeros - truncation to last digit.



**GTK Client**

  * The Yubikey can now be enrolled with GTK client based on python 2.7.
  * Modified the GTK client this way, that the realm filter is always available.
  * Added the possibility to give the CA certificate with the LDAP Resolver.
  * Added import of policies to GTK client.
  * Added the possiblity to export the policies to a file.
  * Audit log now shows the last entry first.
  * Added eToken enrollment command line tools.
  * Fixed missing dependency for configobj.
  * Fixed the jumping of the filter cursor.
  * Fixed display of policy in GTK client.


Updating from LinOTP 2.5.0 to LinOTP 2.5.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Updating a deb install
......................

Issue the command::

	dpkg -i linotp_2.5.1_all.deb linotp-ee_2.5.1_all.deb linotpuseridresolveree_2.5.1_all.deb \
            linotpdoc_2.5.1_all.deb python-qrcode_2.4.2_all.deb

Updating a pip install
......................

.. warning:: Before updating a pip installation you very much need to backup your files in
   /etc/linotp2! The pip installing logic is not that sophisticated, it might overwrite
   existing config files. So please backup at least: ``/etc/linotp2/linotp.ini`` and
   ``/etc/linotp2/encKey``!

If you have installed LinOTP using pip as described in :ref:`pip_install`, you first can upgrade the
main server components via the internet to the latest version::

   pip install –upgrade linotp

Then upgrade the enterprise edition components. You need to download the newer version the
customers portal::

   pip install qrcode
   pip install –-upgrade /path/to/packages/LinOTP-EE-2.5.1.tar.gz
   pip install –-upgrade /path/to/packages/LinOtpUserIdResolverEE-2.5.1.tar.gz
   pip install –-upgrade /path/to/packages/LinOtpDoc-2.5.1.tar.gz

Changelog
.........

**LinOTP Server**

  * added QR-Code enrollment in management web UI and selfservice portal
  * added QR-Code image to reply
  * added HTML documentation for LinOTP Web UI
  * added import OCRA seeds via CSV
  * added possibility to send 500er HTTP error instead of status:false
  * added alert-box (pop under)
  * added support for AD uidType DN, objectGUID and sAMAccountName
  * added man pages for command line tools
  * improved python PIP installation
  * improved performance with dynamic token classes
  * define the contents of the lost password token (#806)
  * only active tokens are counted for the licensing (#810)
  * using sqlalchemy for where clauses in SQLResolver
  * fixed translation
  * fixed broken totp resync
  * fixed empty password are neglected ldap_simple bind 
  * fixed connection close() in  checkMapping()

Updating from LinOTP 2.4.4 to LinOTP 2.5.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Updating a deb install
.......................

Before updating, please assure, that you have a backup of your encryption key and also of your
token database.

Issue the command::

   dpkg -i linotp_2.5.0-8_all.deb linotp-ee_2.5.0_all.deb linotpuseridresolveree_2.5.0-2_all.deb

If you want to use OCRA functionality you also need to update your database. You can do this by issuing the command::

   paster setup-app /etc/linotp2/linotp.ini

After this please check the access rights of your logfiles in ``/var/log/linotp/``.

Updating a pip install
......................

.. warning:: Before updating a pip installation you very much need to backup your files in
   /etc/linotp2! The pip installing logic is not that sophisticated, it might overwrite
   existing config files. So please backup at least: ``/etc/linotp2/linotp.ini`` and
   ``/etc/linotp2/encKey``!

If you have installed LinOTP using pip as described in :ref:`pip_install`, you first can upgrade the
main server components via the internet to the latest version::

   pip install –upgrade linotp

Then upgrade the enterprise edition components. You need to download the newer version the
customers portal::

   pip install –-upgrade /path/to/packages/LinOTP-EE-2.5.0.tar.gz
   pip install –-upgrade /path/to/packages/LinOtpUserIdResolverEE-2.5.0-2.tar.gz

Changelog
.........

**LinOTP Server**

  * Added OCRA token and QR-TAN functionality.
  * Make TOTP token honor DefaultOTPLength configuration.
  * Fixed bug, where a previous OTP value could be used again.
  * Added support for DB2 Token database.
  * Added framework of security modules to support HSMs to store the encryption keys.
  * Added TOTP Google authenticator to self service .
  * Improved SQLuserIdResolver (Performance).
  * Improved LDAPResolver (entryUUID or ObjectGUID).
  * Added passthru policy to authenticate users without token.
  * Added client IPs to policies.
  * Selfservice: added reset of failcounter.

