Tell apart group sid from user sid
I'm trying to use both, smbj and smbj-rpc to retrieve files and their ACE information.
So far I've been able to retrieve the file ACEs, to the point of getting the SID, and then using smbj-rpc to resolve the SIDs, but I haven't been able to check if the ACE is for a user or a group.
Is there a way to do it?
LocalSecurityAuthorityService.lookupNamesForSIDs will only return the name of the SID, so I only get things like "SYSTEM", "Administrators", "john.doe"
I was able to get around this issue by extending the LocalSecurityAuthorityService to return the LsarLookupSIDsResponse instead of a string array.
However, I think this should in the standard library, since there is no way to get that information without directly changing the implementation.