Closed mcondo closed 3 years ago
Hi @mcondo,
Porting https://github.com/rapid7/smbj-rpc to be integrated in smbj is something that might be worth the effort, and then it would also be possible to support this usecase. However I could definitely use some help there as I'm rather short on time ;)
Hi @hierynomus We were able to use rapid7/smb-rpc to get the share level acls. We made something like that:
RPCTransport transport = SMBTransportFactories.SRVSVC.getTransport(session);
ServerService serverService = new ServerService(transport);
NetShareInfo502 share = serverService.getShare502("share");
SMBBuffer buffer = new SMBBuffer(share.getSecurityDescriptor());
SecurityDescriptor securityDescriptor = SecurityDescriptor.read(buffer);
List<ACE> aces = securityDescriptor.getDacl().getAces();
Thanks!
Hi Regarding the comment on here https://github.com/hierynomus/smbj/issues/257#issuecomment-347778462