Separate WinRM Windows credentials from Sonic SMC logins.

WinRM no longer reuses Administrator/Administrator; empty WinRm* uses the current Windows user, with clearer auth errors and LocalCmd guidance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-24 08:47:35 +02:00
co-authored by Cursor
parent cfbf80ecbf
commit d71d6990ad
4 changed files with 125 additions and 15 deletions
@@ -11,9 +11,11 @@ namespace ZA.CoreService.ESBCertificateManager.Services;
///
/// Modus = WinRm (Standard):
/// PowerShell Remoting (Invoke-Command) → CMD stop/startcontainer auf dem Sonic-Server.
/// WinRM nutzt WinRmUsername/WinRmPassword (Windows); leer = aktueller Benutzer.
/// Username/Password bleiben Sonic-SMC-/Domain-Manager-Logins.
///
/// Modus = LocalCmd:
/// Dieselbe CMD/PowerShell-Logik lokal (Test direkt auf dem Sonic-PC).
/// Dieselbe CMD/PowerShell-Logik lokal (App muss auf dem Sonic-PC laufen; kein WinRM).
///
/// Modus = HttpApi:
/// HTTP REST API mit automatischer Pfad-Erkennung.