Skip to content

Commit

Permalink
Version 5.6.3.2022
Browse files Browse the repository at this point in the history
Aligned script parameter naming
Upped version to 5.6.3.2022
  • Loading branch information
sorengranfeldt committed Mar 31, 2021
1 parent 22b86c7 commit 2251cb2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Granfeldt.PowerShell.ManagementAgent/MA.Export.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ PutExportEntriesResults IMAExtensible2CallExport.PutExportEntries(IList<CSEntryC
try
{
Command cmd = new Command(Path.GetFullPath(ExportScript));
cmd.Parameters.Add(new CommandParameter("User", Username));
cmd.Parameters.Add(new CommandParameter("Username", Username));
cmd.Parameters.Add(new CommandParameter("Password", Password));
cmd.Parameters.Add(new CommandParameter("Credentials", GetSecureCredentials(Username, SecureStringPassword)));

cmd.Parameters.Add(new CommandParameter("UsernameAux", UsernameAux));
cmd.Parameters.Add(new CommandParameter("PasswordAux", PasswordAux));
cmd.Parameters.Add(new CommandParameter("CredentialsAux", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));
cmd.Parameters.Add(new CommandParameter("AuxUsername", UsernameAux));
cmd.Parameters.Add(new CommandParameter("AuxPassword", PasswordAux));
cmd.Parameters.Add(new CommandParameter("AuxCredentials", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));

cmd.Parameters.Add(new CommandParameter("ConfigurationParameter", ConfigurationParameter));

Expand Down
6 changes: 3 additions & 3 deletions Granfeldt.PowerShell.ManagementAgent/MA.Import.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ public GetImportEntriesResults GetImportEntries(GetImportEntriesRunStep importRu
cmd.Parameters.Add(new CommandParameter("Password", Password));
cmd.Parameters.Add(new CommandParameter("Credentials", GetSecureCredentials(Username, SecureStringPassword)));

cmd.Parameters.Add(new CommandParameter("UsernameAux", UsernameAux));
cmd.Parameters.Add(new CommandParameter("PasswordAux", PasswordAux));
cmd.Parameters.Add(new CommandParameter("CredentialsAux", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));
cmd.Parameters.Add(new CommandParameter("AuxUsername", UsernameAux));
cmd.Parameters.Add(new CommandParameter("AuxPassword", PasswordAux));
cmd.Parameters.Add(new CommandParameter("AuxCredentials", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));

cmd.Parameters.Add(new CommandParameter("ConfigurationParameter", ConfigurationParameter));

Expand Down
8 changes: 4 additions & 4 deletions Granfeldt.PowerShell.ManagementAgent/MA.Password.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ void CallPasswordScript(PasswordOperation Action, CSEntry csentry, SecureString
try
{
Command cmd = new Command(Path.GetFullPath(PasswordManagementScript));
cmd.Parameters.Add(new CommandParameter("User", Username));
cmd.Parameters.Add(new CommandParameter("Username", Username));
cmd.Parameters.Add(new CommandParameter("Password", Password));
cmd.Parameters.Add(new CommandParameter("Credentials", GetSecureCredentials(Username, SecureStringPassword)));

cmd.Parameters.Add(new CommandParameter("UsernameAux", UsernameAux));
cmd.Parameters.Add(new CommandParameter("PasswordAux", PasswordAux));
cmd.Parameters.Add(new CommandParameter("CredentialsAux", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));
cmd.Parameters.Add(new CommandParameter("AuxUsernameAux", UsernameAux));
cmd.Parameters.Add(new CommandParameter("AuxPasswordAux", PasswordAux));
cmd.Parameters.Add(new CommandParameter("AuxCredentialsAux", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));

cmd.Parameters.Add(new CommandParameter("ConfigurationParameter", ConfigurationParameter));

Expand Down
6 changes: 3 additions & 3 deletions Granfeldt.PowerShell.ManagementAgent/MA.Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Schema IMAExtensible2GetSchema.GetSchema(KeyedCollection<string, ConfigParameter
cmd.Parameters.Add(new CommandParameter("Password", Password));
cmd.Parameters.Add(new CommandParameter("Credentials", GetSecureCredentials(Username, SecureStringPassword)));

cmd.Parameters.Add(new CommandParameter("UsernameAux", UsernameAux));
cmd.Parameters.Add(new CommandParameter("PasswordAux", PasswordAux));
cmd.Parameters.Add(new CommandParameter("CredentialsAux", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));
cmd.Parameters.Add(new CommandParameter("AuxUsername", UsernameAux));
cmd.Parameters.Add(new CommandParameter("AuxPassword", PasswordAux));
cmd.Parameters.Add(new CommandParameter("AuxCredentials", GetSecureCredentials(UsernameAux, SecureStringPasswordAux)));

cmd.Parameters.Add(new CommandParameter("ConfigurationParameter", ConfigurationParameter));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.6")]
[assembly: AssemblyFileVersion("5.6.3.2021")]
[assembly: AssemblyFileVersion("5.6.3.2022")]
[assembly: AssemblyInformationalVersion("5.6")]

0 comments on commit 2251cb2

Please sign in to comment.