Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds optional securestring password constructor #969

Merged

Conversation

chrisdent-de
Copy link
Contributor

Fixes #967

Copy link
Owner

@dahall dahall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Pending the single change, I'll commit.

/// The password that is used to connect to the computer as a SecureString. If the user name and securePassword are not specified, then the current token is used.
/// </param>
/// <param name="forceV1">If set to <c>true</c> force Task Scheduler 1.0 compatibility.</param>
public TaskService(string targetServer, string userName = null, string accountDomain = null, SecureString userSecurePassword = null, bool forceV1 = false)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to the following to disambiguate from other ctor with optional params:

public TaskService(string targetServer, [Optional] string userName, [Optional] string accountDomain, [Optional] SecureString userSecurePassword, bool forceV1 = false)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done.

@dahall dahall merged commit 71e38c9 into dahall:master Jul 12, 2023
@chrisdent-de chrisdent-de deleted the adds-optional-securestring-password branch July 20, 2023 09:24
chrisdent-de added a commit to chrisdent-de/TaskScheduler that referenced this pull request Jul 21, 2023
dahall pushed a commit that referenced this pull request Jul 31, 2023
dahall added a commit that referenced this pull request May 24, 2024
…l password and causes access denied in ctor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TaskService stores a connection password in clear text
2 participants