Skip to content

Commit

Permalink
Quote all the things / potential fix for #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Seji64 committed Oct 5, 2023
1 parent 5a43e33 commit d2d9141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/LDAPService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static async Task<string> 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();
Expand Down

0 comments on commit d2d9141

Please sign in to comment.