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

OpenSSHUtils ProfilePath parsing issues #192

Merged
merged 2 commits into from
Sep 1, 2017

Conversation

annulus
Copy link

@annulus annulus commented Aug 9, 2017

Hi,

Regarding the authorized_keys permission fix bits:
I found out that in case there's more than one entry in the registry that matches the regex, then it will throw an exception as it appends all the matching registry paths to the profileItem variable, which won't be a valid registry entry that has a PSChildName field (thus the exception).

  • If you delete the home dir of an user, then login via ssh, windows will append ".bak" to the user's profileList entry's name. If you recreate the user, it will have a new profileList entry, but with the same path.
  • If you have multiple users that share the first part of their username/path, then the shortest user's regex will match all of them.

Regards,
David

p.s.: the original converstion can be found at PowerShell/Win32-OpenSSH#843

@msftclas
Copy link

msftclas commented Aug 9, 2017

@annulus,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@bingbing8 bingbing8 merged commit e8a3036 into PowerShell:latestw_all Sep 1, 2017
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.

4 participants