smbj-rpc icon indicating copy to clipboard operation
smbj-rpc copied to clipboard

Tell apart group sid from user sid

Open freddyMorera opened this issue 7 years ago • 1 comments

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"

freddyMorera avatar Aug 20 '18 23:08 freddyMorera

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.

freddyMorera avatar Oct 30 '18 20:10 freddyMorera