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

LsarOpenPolicy2 returns STATUS_ACCESS_DENIED for shares on NetApp filers #109

Open
djdkedev opened this issue Dec 6, 2017 · 3 comments
Open

Comments

@djdkedev
Copy link

djdkedev commented Dec 6, 2017

NetApp filers configuration:
The ONTAP version is 9 and SMBv1, SMBv2 and SMBv3 are enabled by default.

The LocalSecurityAuthorityService.openpolicyhandle() works fine with SMB2 and SMB3 version for shares on Windows but returns "LsarOpenPolicy2 returns STATUS_ACCESS_DENIED" exception for shares on NetApp filers.

Thanks,
Dhananjay

@djdkedev
Copy link
Author

djdkedev commented Dec 6, 2017

Using 0x00020000L READ_CONTROL instead of 'MAXIMUM_ALLOWED' access resolves this issue.

@djdkedev
Copy link
Author

djdkedev commented Dec 8, 2017

The LocalSecurityAuthorityService.openpolicyhandle() should take accessMask as an input parameter.

@djdkedev
Copy link
Author

djdkedev commented Dec 22, 2017

Also, I am getting the following exception for NetShareInfo502 information.
rapid7.client.dcerpc.RPCException: NetrShareEnum returned error code: 5 (ERROR_ACCESS_DENIED)

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