From d2d914104b20a0eb8aed29ba98f43431acf680e7 Mon Sep 17 00:00:00 2001 From: Seji64 Date: Thu, 5 Oct 2023 15:42:21 +0200 Subject: [PATCH] Quote all the things / potential fix for #14 --- src/Services/LDAPService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/LDAPService.cs b/src/Services/LDAPService.cs index 0ece79c..306dc56 100644 --- a/src/Services/LDAPService.cs +++ b/src/Services/LDAPService.cs @@ -217,7 +217,7 @@ private static async Task DecryptLAPSPayload(byte[] value, LdapCredentia string pythonBin = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "python" : "python3"; var pythonCmd = Cli.Wrap(pythonBin) - .WithArguments($"\"{pythonDecryptScriptPath}\" --user {ldapCredential.UserName} --password {ldapCredential.Password} --data {Convert.ToBase64String(value)})") + .WithArguments($"\"{pythonDecryptScriptPath}\" --user \"{ldapCredential.UserName}\" --password \"{ldapCredential.Password}\" --data \"{Convert.ToBase64String(value)}\"") .WithStandardOutputPipe(PipeTarget.ToStringBuilder(pythonScriptResult)); await pythonCmd.ExecuteAsync();