Skip to content

Commit

Permalink
New release 5.4.0.1
Browse files Browse the repository at this point in the history
FIX: Values of SetUserCacheLevel(), GetUserCacheLevel(), SetUserCacheLifetime() and GetUserCacheLifetime() are not correctly initialized
ENH: Enigma Virtual Box updated to version 9.10 (to create the special all-in-one-file)
ENH: PHP 7.1.22 used in the one single file (only PHP < 7.2 is still compatible with Windows 7/2008)
ENH: Compatibility mode to Windows 7 automatically added for radiusd.exe during radius service installation
ENH: PHP display error flag is now set to off by default in the webservice under Windows
  • Loading branch information
multiOTP committed Sep 14, 2018
1 parent 54f8c3c commit 770ae0c
Show file tree
Hide file tree
Showing 17 changed files with 105 additions and 67 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# Please check http://www.multiOTP.net/ and you will find the magic button ;-)
#
# @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
# @version 5.3.0.3
# @date 2018-08-26
# @version 5.4.0.1
# @date 2018-09-14
# @since 2013-11-29
# @copyright (c) 2013-2018 by SysCo systemes de communication sa
# @copyright GNU Lesser General Public License
Expand All @@ -39,7 +39,7 @@ MAINTAINER Andre Liechti <[email protected]>
LABEL Description="multiOTP open source, running on Debian ${DEBIAN} with PHP${PHPVERSION}." \
License="LGPLG-3.0" \
Usage="docker run --mount source=[SOURCE PERSISTENT VOLUME],target=/etc/multiotp -p [HOST WWW PORT NUMBER]:80 -p [HOST SSL PORT NUMBER]:443 -p [HOST RADIUS-AUTH PORT NUMBER]:1812/udp -p [HOST RADIUS-ACCNT PORT NUMBER]:1813/udp -d multiotp-open-source" \
Version="5.3.0.3"
Version="5.4.0.1"

ARG DEBIAN_FRONTEND=noninteractive

Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ multiOTP open source is OATH certified for HOTP/TOTP
(c) 2010-2018 SysCo systemes de communication sa
http://www.multiOTP.net/

Current build: 5.3.0.3 (2018-08-26)
Current build: 5.4.0.1 (2018-09-14)

Binary download: https://download.multiotp.net/ (including virtual appliance image)

Expand Down Expand Up @@ -287,6 +287,12 @@ WHAT'S NEW IN THE RELEASES
CHANGE LOG OF RELEASED VERSIONS
===============================
```
2018-09-14 5.4.0.1 FIX: Values of SetUserCacheLevel(), GetUserCacheLevel(), SetUserCacheLifetime() and GetUserCacheLifetime()
are not correctly initialized
ENH: Enigma Virtual Box updated to version 9.10 (to create the special all-in-one-file)
ENH: PHP 7.1.22 used in the one single file (only PHP < 7.2 is still compatible with Windows 7/2008)
ENH: Compatibility mode to Windows 7 automatically added for radiusd.exe during radius service installation
ENH: PHP display error flag is now set to off by default in the webservice under Windows
2018-08-26 5.3.0.3 FIX: Better without2FA algorithm support
FIX: Restore configuration has been fixed in the command line edition
ENH: Cache-level and cache-lifetime can be set separately for each user
Expand Down Expand Up @@ -1635,7 +1641,7 @@ MULTIOTP COMMAND LINE TOOL
==========================

```
multiOTP 5.3.0.3 (2018-08-26)
multiOTP 5.4.0.1 (2018-09-14)
(c) 2010-2018 SysCo systemes de communication sa
http://www.multiOTP.net (you can try the [Donate] button ;-)
Expand Down Expand Up @@ -2097,8 +2103,8 @@ Visit https://forum.multiotp.net/ for additional support
```

```
Hash verification for multiotp_5.3.0.3.zip
SHA256:c5d4eddb8de45b18b753f72e6879dd7007b48c2d739db3471e4f3c8ac0d4697b
SHA1:905b804418aa4decd2e4357493aa867248223359
MD5:338f73d3987660b92fda63b52d45949a
Hash verification for multiotp_5.4.0.1.zip
SHA256:6fda7fe29953149cc5d8d47ee2fa40cdd339f36c117b063e704a56edb4766662
SHA1:ec866b1cdb66c719538dfe2ef9977d9c98f00aa1
MD5:1de9c65eba99c41c9de712e3e8b59d3c
```
4 changes: 2 additions & 2 deletions check.multiotp.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* PHP 5.3.0 or higher is supported.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2013-07-10
* @copyright (c) 2013-2018 SysCo systemes de communication sa
* @copyright GNU Lesser General Public License
Expand Down
4 changes: 2 additions & 2 deletions checkmultiotp.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ REM
REM Windows batch file for Windows 2K/XP/2003/7/2008/8/2012/10
REM
REM @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
REM @version 5.3.0.3
REM @date 2018-08-26
REM @version 5.4.0.1
REM @date 2018-09-14
REM @since 2010-07-10
REM @copyright (c) 2010-2018 SysCo systemes de communication sa
REM @copyright GNU Lesser General Public License
Expand Down
14 changes: 11 additions & 3 deletions contrib/MultiotpYubikey.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class MultiotpYubikey
* @brief Class definition for Yubikey handling.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.1.0.6
* @date 2018-02-26
* @version 5.4.0.0
* @date 2018-09-05
* @since 2014-11-04
*
*
Expand All @@ -24,6 +24,7 @@ class MultiotpYubikey
*
* Change Log
*
* 2018-09-05 5.4.0.0 SysCo/al FIX: infinity_dev Fix UTC issue
* 2018-02-26 5.1.0.6 SysCo/al ENH: __construct instead of the name of the class
* 2016-03-22 4.3.2.7 SysCo/al ENH: private id support for CheckYubicoOtp method
* 2014-11-04 4.3.0.0 SysCo/al Initial implementation of MultiotpYubikey class
Expand Down Expand Up @@ -326,7 +327,14 @@ function CheckOnYubiCloud($otp_to_check) {
sort($yubicloud_response_parameters);

if (isset($response['t'])) {
$response['t_utc'] = date_format(date_create(substr($response['t'], 0, -4)), "U");
$posZ=strrpos($response['t'], 'Z');
$responseTime = $response['t'];
if ($posZ > 0)
$responseTime = substr($response['t'], 0, $posZ);
$tzbackup = date_default_timezone_get();
date_default_timezone_set('UTC');
$response['t_utc'] = date_format(date_create($responseTime), "U");
date_default_timezone_set($tzbackup);
}

$parameters_for_hash = '';
Expand Down
4 changes: 2 additions & 2 deletions launcher/ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ The multiOTP C++ launcher is simply used to launch PHP
and run multiotp.windows.php with the provided arguments.

@author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
@version 5.3.0.3
@date 2018-08-26
@version 5.4.0.1
@date 2018-09-14
@since 2016-12-08
@copyright (c) 2010-2018 SysCo systemes de communication sa
@copyright GNU Lesser General Public License
Expand Down
8 changes: 4 additions & 4 deletions launcher/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* and run multiotp.windows.php with the provided arguments.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2016-12-08
* @copyright (c) 2010-2018 SysCo systemes de communication sa
* @copyright GNU Lesser General Public License
Expand Down Expand Up @@ -68,8 +68,8 @@
#include <iostream>

#define SOFTWARE "LAUNCHPHPMULTIOTP"
#define VER_NUMBER "5.3.0.3"
#define VER_DATE "2018-08-26"
#define VER_NUMBER "5.4.0.1"
#define VER_DATE "2018-09-14"

int _tmain(int argc, _TCHAR* argv[])
{
Expand Down
30 changes: 18 additions & 12 deletions multiotp.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
* PHP 5.3.0 or higher is supported.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2010-06-08
* @copyright (c) 2010-2018 SysCo systemes de communication sa
* @copyright GNU Lesser General Public License
Expand Down Expand Up @@ -516,6 +516,12 @@
*
* Change Log
*
* 2018-09-14 5.4.0.1 SysCo/al FIX: Values of SetUserCacheLevel(), GetUserCacheLevel(), SetUserCacheLifetime() and GetUserCacheLifetime()
* are not correctly initialized
* ENH: Enigma Virtual Box updated to version 9.10 (to create the special all-in-one-file)
* ENH: PHP 7.1.22 used in the one single file (only PHP < 7.2 is still compatible with Windows 7/2008)
* ENH: Compatibility mode to Windows 7 automatically added for radiusd.exe during radius service installation
* ENH: PHP display error flag is now set to off by default in the webservice under Windows
* 2018-08-26 5.3.0.3 SysCo/al FIX: Better without2FA algorithm support
* FIX: Restore configuration has been fixed in the command line edition
* ENH: Cache-level and cache-lifetime can be set separately for each user
Expand Down Expand Up @@ -833,8 +839,8 @@ class Multiotp
* @brief Main class definition of the multiOTP project.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2010-07-18
*/
{
Expand Down Expand Up @@ -925,8 +931,8 @@ class Multiotp
* @retval void
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2010-07-18
*/
function __construct(
Expand All @@ -945,11 +951,11 @@ function __construct(

if (!isset($this->_class)) { $this->_class = base64_decode('bXVsdGlPVFA='); }
if (!isset($this->_version)) {
$temp_version = '@version 5.3.0.3'; // You should add a suffix for your changes (for example 5.0.3.2-andy-2016-10-XX)
$temp_version = '@version 5.4.0.1'; // You should add a suffix for your changes (for example 5.0.3.2-andy-2016-10-XX)
$this->_version = trim(substr($temp_version, 8));
}
if (!isset($this->_date)) {
$temp_date = '@date 2018-08-26'; // You should update the date with the date of your changes
$temp_date = '@date 2018-09-14'; // You should update the date with the date of your changes
$this->_date = trim(substr($temp_date, 8));
}
if (!isset($this->_copyright)) { $this->_copyright = base64_decode('KGMpIDIwMTAtMjAxOCBTeXNDbyBzeXN0ZW1lcyBkZSBjb21tdW5pY2F0aW9uIHNh'); }
Expand Down Expand Up @@ -1684,26 +1690,26 @@ function IsMultipleGroupsEnabled()
function SetUserCacheLevel(
$value
) {
$this->_config_data['cache_level'] = intval($value);
$this->_user_data['cache_level'] = intval($value);
}


function GetUserCacheLevel()
{
return intval($this->_config_data['cache_level']);
return intval($this->_user_data['cache_level']);
}


function SetUserCacheLifetime(
$value
) {
$this->_config_data['cache_lifetime'] = intval($value);
$this->_user_data['cache_lifetime'] = intval($value);
}


function GetUserCacheLifetime()
{
return intval($this->_config_data['cache_lifetime']);
return intval($this->_user_data['cache_lifetime']);
}


Expand Down
4 changes: 2 additions & 2 deletions multiotp.cli.header.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* PHP 5.3.0 or higher is supported.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2010-06-08
* @copyright (c) 2010-2018 SysCo systemes de communication sa
* @copyright GNU Lesser General Public License
Expand Down
4 changes: 2 additions & 2 deletions multiotp.cli.proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* PHP 5.3.0 or higher is supported.
*
* @author Andre Liechti, SysCo systemes de communication sa, <[email protected]>
* @version 5.3.0.3
* @date 2018-08-26
* @version 5.4.0.1
* @date 2018-09-14
* @since 2010-06-08
* @copyright (c) 2010-2018 SysCo systemes de communication sa
* @copyright GNU Lesser General Public License
Expand Down
Loading

0 comments on commit 770ae0c

Please sign in to comment.