Skip to content

Adds optional securestring password constructor - #969

Merged
dahall merged 5 commits into
dahall:masterfrom
chrisdent-de:adds-optional-securestring-password
Jul 12, 2023
Merged

dahall merged 5 commits into
dahall:masterfrom
chrisdent-de:adds-optional-securestring-password

Conversation

@chrisdent-de

Copy link
Copy Markdown
Contributor

Fixes #967

@dahall dahall left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread TaskService/TaskService.cs Outdated
/// 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
Copy Markdown
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
Copy Markdown
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

⌂ 换网址