From e69f4d77b2b84187602c0cd34c49cf56ae465c87 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Mon, 25 Sep 2006 15:26:58 +0000 Subject: [PATCH] Support /user restriction for Windows dstore server --- .../serverruntime/scripts/windows/server.bat | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/windows/server.bat b/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/windows/server.bat index c9601f25d14..f85232249dc 100644 --- a/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/windows/server.bat +++ b/rse/plugins/org.eclipse.rse.services.dstore/serverruntime/scripts/windows/server.bat @@ -1,11 +1,15 @@ @echo off REM REM Start an RSE Windows Server -REM Usage: server.bat [] [] [] +REM Usage: server.bat [/user ] [] [] REM setlocal +IF NOT "%1" == "/user" GOTO noUserRestriction +set USER_RESTRICTION=-Dclient.username=%2 +shift 2 +:noUserRestriction set PORT=%1 set TIMEOUT=%2 set TICKET=%3 @@ -29,17 +33,18 @@ CALL setup.bat :doneSetup if "%3" == "" goto runNoTicket +REM The ticket parameter may be used internally by the daemon for starting a server @echo on -java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server %PORT% %TIMEOUT% %TICKET% +java %USER_RESTRICTION% -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server %PORT% %TIMEOUT% %TICKET% goto done :runNoTicket @echo on -java -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server %PORT% %TIMEOUT% +java %USER_RESTRICTION% -DA_PLUGIN_PATH=%A_PLUGIN_PATH% -DDSTORE_SPIRIT_ON=true org.eclipse.dstore.core.server.Server %PORT% %TIMEOUT% goto done :usage -@echo Usage: server.bat ^ ^ +@echo Usage: server.bat [/user ^] [^] [^] pause :done