We will soon be rolling out smbj v0.12.0 as part of our software product. During testing we unfortunately found that the v0.12.0 release breaks Kerberos authentication.
This code results in a NullPointerException (in previous smbj versions this code works):
var builder = SmbConfig.builder() //
.withMultiProtocolNegotiate(true);
var authContext = new GSSAuthenticationContext(...);
var client = new SMBClient(builder.build())//
.connect(host, config.getFileserverPort()) //
.authenticate(authContext);
java.lang.NullPointerException: Cannot read the array length because "buf" is null
at com.hierynomus.protocol.commons.buffer.Buffer.putRawBytes(Buffer.java:316)
at com.hierynomus.spnego.RawToken.write(RawToken.java:38)
at com.hierynomus.smbj.connection.SMBSessionBuilder.processAuthenticationToken(SMBSessionBuilder.java:200)
at com.hierynomus.smbj.connection.SMBSessionBuilder.setupSession(SMBSessionBuilder.java:165)
at com.hierynomus.smbj.connection.SMBSessionBuilder.establish(SMBSessionBuilder.java:119)
at com.hierynomus.smbj.connection.Connection.authenticate(Connection.java:202)
If have (only) tested this against ActitveDirectory and with file share (hosted by the ActiveDirectory DC).
I can offer support in testing bugfix branches against our setup but I am a little out of depth with regard to fixing the SMB protocol implementation myself.
We will soon be rolling out smbj v0.12.0 as part of our software product. During testing we unfortunately found that the v0.12.0 release breaks Kerberos authentication.
This code results in a NullPointerException (in previous smbj versions this code works):
If have (only) tested this against ActitveDirectory and with file share (hosted by the ActiveDirectory DC).
I can offer support in testing bugfix branches against our setup but I am a little out of depth with regard to fixing the SMB protocol implementation myself.