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

STATUS_INVALID_PARAMETER while creating lsarpc transport #171

Open
abhisheksardana opened this issue Apr 6, 2023 · 0 comments
Open

STATUS_INVALID_PARAMETER while creating lsarpc transport #171

abhisheksardana opened this issue Apr 6, 2023 · 0 comments

Comments

@abhisheksardana
Copy link

Hello,

We are creating lsarpc transport to fetch the security descriptor but the request is failing with STATUS_INVALID_PARAMETER if encrypt data flag it set to true and buffer size is 1 MB. However same is working fine if either buffer size is 64 KB or encrypt data flag it set to false.

This is how we are creating SMB client and transport.

SMBClient client  = new SMBClient(SmbConfig.builder()
                        .withTimeout(context.getSettings().getSessionTimeoutInSeconds(),
                                     TimeUnit.SECONDS)
                        .withDfsEnabled(true)
                        .withEncryptData(true)
                        .withBufferSize(1024 * 1024)
                        .withDialects(supportedSMBDialects)
                        .build());

RPCTransport transport = SMBTransportFactories.LSASVC.getTransport(session);

Working code:

SMBClient client  = new SMBClient(SmbConfig.builder()
                        .withTimeout(context.getSettings().getSessionTimeoutInSeconds(),
                                     TimeUnit.SECONDS)
                        .withDfsEnabled(true)
                        .withEncryptData(true)
                        .withBufferSize(64* 1024)
                        .withDialects(supportedSMBDialects)
                        .build());

RPCTransport transport = SMBTransportFactories.LSASVC.getTransport(session);

We are using 0.12.0 version of smbj-rpc and 0.11.3 version of smbj
OS: Windows server 2019

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