PHP Classes

File: webservice_uninstall.cmd

Recommend this page to a friend!
  Classes of André Liechti   multiOTP PHP class   webservice_uninstall.cmd   Download  
File: webservice_uninstall.cmd
Role: Auxiliary data
Content type: text/plain
Description: Release 5.0.4.6
Class: multiOTP PHP class
Authenticate and manage OTP strong user tokens
Author: By
Last change: New release 5.9.7.1
FIX: Command line number of parameters detection corrected
ENH: It's now possible to define the number of digits for new created PIN
(multiotp -config default-pin-digits=n)
ENH: It's now possible to generate the HTML provisioning file by command line
(multiotp -htmlinfo username /full/path/to/username.html or
multiotp -htmlinfo /full/path/to/folder/ to generate files for all users)
ENH: Embedded Windows nginx edition updated to version 1.25.3
ENH: Embedded Windows internal tools updated (wget 1.21.4 and fart 1.99d)
ENH: Embedded Windows freeradius is now launched using NSSM (instead of SRVANY)
New release 5.9.7.0
FIX: Better Windows nginx configuration support (path backslashes replaced by slashes)
ENH: Embedded Windows nginx edition updated to version 1.24.0
ENH: Embedded Windows PHP edition updated to version 8.2.13
ENH: Better hardware/model detection
ENH: Documentation enhanced with instructions for RDWeb on Windows
ENH: Upgrade of some internal tools
ENH: Better internal configuration organization
New release 5.9.6.7
ENH: Documentation updated for "Configuring multiOTP with FreeRADIUS 3.x under Linux"
ENH: Without2FA tokens cannot be used for multi_account connection
ENH: Added documentation for SSH login with multiOTP
New release 5.9.6.5
FIX: Better Raspberry Pi support
FIX: ShowLog() method (used by -showlog option) was buggy
New release 5.9.6.1
FIX: Automated concurrent access for the same user with "Without2FA" token could corrupt the user file
FIX: Any files backend operation is now secured with explicit lock mechanism
ENH: Template updated to print bigger QRcode for "MOTP-XML" tokens
New release 5.9.5.7
FIX: Weekly anonymized stats date was not always updated
FIX: Adding -tokenslist command in CLI mode (mas missing)
FIX: Remove a debug line displaying sometimes "COMMDN:$command\n";
FIX: Some minor PHP notice corrections
ENH: Adding on-premises smsgateway (https://github.com/multiOTP/SMSGateway) as a new SMS provider
ENH: Better warning messages when CheckUserLdapPassword failed
ENH: Embedded documentation enhanced
ENH: Template updated to display correct information for WITHOUT2FA tokens
Date: 3 months ago
Size: 3,350 bytes
 

Contents

Class file image Download
@ECHO OFF REM ************************************************************ REM @file webservice_uninstall.cmd REM @brief Script to uninstall the web service. REM REM multiOTP - Strong two-factor authentication PHP class package REM https://www\.multiOTP.net 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, <info@multiotp.net> REM @version 5.9.7.1 REM @date 2023-12-03 REM @since 2013-08-09 REM @copyright (c) 2013-2023 SysCo systemes de communication sa REM @copyright GNU Lesser General Public License REM REM REM Description REM REM webservice_uninstall is a small script that will uninstall REM the web service of multiOTP under Windows using Nginx. REM (http://nginx.org/en/) REM REM REM Usage REM REM The script must be launched in the top folder of multiOTP. REM REM REM Licence REM REM Copyright (c) 2013-2023 SysCo systemes de communication sa REM SysCo (tm) is a trademark of SysCo systemes de communication sa REM (http://www.sysco.ch/) REM All rights reserved. REM REM This file is part of the multiOTP project. REM REM REM Change Log REM REM 2023-11-23 5.9.7.0 SysCo/al nginx 1.24.0, PHP 8.2.12 REM Path backslashes converted to slashes to avoid \t interpretation REM Space in installation path supported REM 2020-12-11 5.8.0.6 SysCo/al Do an automatic "Run as administrator" if needed REM 2018-11-13 5.4.0.2 SysCo/al Detection to know if something must be stopped REM 2017-05-29 5.0.4.5 SysCo/al Unified script with some bug fixes REM 2017-01-10 5.0.3.4 SysCo/al The web server is now Nginx instead of Mongoose REM 2016-11-04 5.0.2.7 SysCo/al Unified file header REM 2016-10-16 5.0.2.5 SysCo/al Version synchronisation REM 2015-07-15 4.3.2.5 SysCo/al Version synchronisation REM 2013-08-23 4.0.6 SysCo/al Enhanced options REM 2013-08-21 4.0.5 Service name can be given as a parameter REM 2013-08-19 4.0.4 SysCo/al Initial release REM REM ************************************************************ NET SESSION >NUL 2>&1 IF NOT %ERRORLEVEL% == 0 ( ECHO WARNING! Please run this script as an administrator, otherwise it will fail. ECHO Elevating privileges... REM PING 127.0.0.1 > NUL 2>&1 CD /d %~dp0 MSHTA "javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('%~nx0', '', '', 'runas', 1);close();" EXIT REM PAUSE REM EXIT /B 1 ) :NoWarning SET _service_tag=multiOTPservice IF NOT "%1"=="" SET _service_tag=%1 SET _folder=%~d0%~p0 SET _web_folder=%~d0%~p0 IF NOT EXIST "%_web_folder%webservice" SET _web_folder=%~d0%~p0..\ netsh firewall delete allowedprogram "%_folder%webservice\nginx.exe" >NUL netsh advfirewall firewall delete rule name="%_service_tag%" >NUL SC queryex type= service state= all | FIND "%_service_tag%" >NUL IF ERRORLEVEL 1 GOTO NoService ECHO Stop and remove the service %_service_tag% "%_web_folder%webservice\nssm" stop "%_service_tag%" >NUL "%_web_folder%webservice\nssm" remove "%_service_tag%" confirm >NUL :NoService TASKLIST | FIND "php-cgi.exe" >NUL IF NOT ERRORLEVEL 1 TASKKILL /F /IM php-cgi.exe >NUL SET _folder= SET _web_folder=