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

Tell apart group sid from user sid #134

Open
freddyMorera opened this issue Aug 20, 2018 · 1 comment
Open

Tell apart group sid from user sid #134

freddyMorera opened this issue Aug 20, 2018 · 1 comment

Comments

@freddyMorera
Copy link

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
Copy link
Author

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.

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

No branches or pull requests

1 participant