[java-idp-plugin-jetty] 02/02: JJETTY-53 Consider probing for ADMIN privs in ConfigJetty.bat
Codeberg
noreply at shibboleth.net
Tue Nov 10 16:02:39 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-idp-plugin-jetty.
View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-jetty/commit/5587a8a3caa4c42bd7aa380b13a85e7fdcb97438
commit 5587a8a3caa4c42bd7aa380b13a85e7fdcb97438
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Nov 10 14:32:45 2026 +0000
JJETTY-53 Consider probing for ADMIN privs in ConfigJetty.bat
https://shibboleth.atlassian.net/browse/JJETTY-53
---
.../resources/net/shibboleth/idp/module/jetty/config-jetty.bat | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/jetty-impl/src/main/resources/net/shibboleth/idp/module/jetty/config-jetty.bat b/jetty-impl/src/main/resources/net/shibboleth/idp/module/jetty/config-jetty.bat
index 3d59364..b91a3e8 100644
--- a/jetty-impl/src/main/resources/net/shibboleth/idp/module/jetty/config-jetty.bat
+++ b/jetty-impl/src/main/resources/net/shibboleth/idp/module/jetty/config-jetty.bat
@@ -1,5 +1,12 @@
@echo off
+REM Probe for admin
+net session 1> nul 2> nul
+if %errorlevel% NEQ 0 (
+ Echo This command needs to be run with administrative rights.
+ exit /b
+)
+
REM
REM We do not want any environment changes we make to escape
REM
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list