Skip to content

OpenSSHUtils Module Not Handling Localization of User IDs for German #771

Closed
@DarwinJS

Description

@DarwinJS

A user reported the below error with the Chocolatey Package - but this is actually coming from the OpenSSHUtils module.

Here is the full Chocolatey verbose log (which reveals many other details about the user's target system) that contains the below error near the bottom: https://gist.githubusercontent.com/Waterdrop0815/39325828f4fc39595fce9304f1a98fda/raw/3de27c0e9700b9b9ae89a9ede94c0fa4ab1f15f4/choco-log.txt

It seems like 'NT-AUTORITÄT\SYSTEM' might be the localized version of 'NT AUTHORITY\SYSTEM'.

Perhaps the script should be changed to only use well known SIDS (e.g. on lines 2,3 and 5) and then translate to text user ids on the target systems if and when necessary. Maybe the string "NT SERVICE" needs localization as well?

2017-06-16 18:28:57,008 5784 [INFO ] -   [*] C:\Program Files\OpenSSH-Win64\sshd_config
2017-06-16 18:28:57,462 5784 [INFO ] - 'NT AUTHORITY\SYSTEM' now owns 'C:\Program Files\OpenSSH-Win64\sshd_config'. 
2017-06-16 18:28:57,837 5784 [INFO ] - 'NT-AUTORITÄT\SYSTEM' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:58,095 5784 [INFO ] - 'VORDEFINIERT\Administratoren' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:58,339 5784 [INFO ] - 'VORDEFINIERT\Benutzer' has no more access to 'C:\Program Files\OpenSSH-Win64\sshd_config'.
2017-06-16 18:28:59,009 5784 [ERROR] - ERROR: Exception calling "RemoveAccessRule" with "1" argument(s): "Some or all identity references could not be translated."
2017-06-16 18:28:59,369 5784 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '/SSHServerFeature SSHAgentFeature SSHServerPort:13337''] exited with '-1'.
2017-06-16 18:28:59,431 5784 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2017-06-16 18:28:59,603 5784 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'````

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions