-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Get-IcingaUserSID is throwing an exception in case a host is not within a domain and the NETBIOS name length limit is exceded
Ausnahme beim Aufrufen von "Translate" mit 1 Argument(en): "Manche oder alle Identitätsverweise konnten nicht
übersetzt werden."
In Zeile:1 Zeichen:1
+ $NTUser.Translate([System.Security.Principal.SecurityIdentifier])
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : IdentityNotMappedExceptionExpected Behavior
The function should return the security information regardless of domain or non-domain hosts
Current Behavior
The Framework will crash with an exception instead of returning the security data
Possible Solution
Instead of using the local hostname, we will have to use the NETBIOS name for systems not being part of a domain
Steps to Reproduce (for bugs)
- Install a machine with a local hostname longer than 15 digits
- Installation the framework
- Run
Get-IcingaUserSIDfor your local account
Context
Using the Framework on such systems is not possible right now
Metadata
Metadata
Assignees
Labels
BugThere is an issue presentThere is an issue present