I am trying to create an LDAPConnectionPool, but getting a connection always fails because the duplicated GSSAPIBindRequests have always set the GSSAPIChannelBindingType to NONE.
Thanks for reporting this. I have just committed a fix. I also added a GSSAPIBindRequest.getChannelBindingType method that can be used to retrieve the channel binding type for the bind request.
I am trying to create an LDAPConnectionPool, but getting a connection always fails because the duplicated GSSAPIBindRequests have always set the GSSAPIChannelBindingType to NONE.
Suggested fix: ` /**
{@inheritDoc} */ @Override() @NotNull() public GSSAPIBindRequest duplicate(@Nullable final Control[] controls) { try { final GSSAPIBindRequestProperties gssapiProperties = new GSSAPIBindRequestProperties(authenticationID, authorizationID, password, realm, kdcAddress, configFilePath); gssapiProperties.setAllowedQoP(allowedQoP); gssapiProperties.setServicePrincipalProtocol(servicePrincipalProtocol); gssapiProperties.setUseTicketCache(useTicketCache); gssapiProperties.setRequireCachedCredentials(requireCachedCredentials); gssapiProperties.setRenewTGT(renewTGT); gssapiProperties.setRefreshKrb5Config(refreshKrb5Config); gssapiProperties.setUseKeyTab(useKeyTab); gssapiProperties.setKeyTabPath(keyTabPath); gssapiProperties.setUseSubjectCredentialsOnly(useSubjectCredentialsOnly); gssapiProperties.setTicketCachePath(ticketCachePath); gssapiProperties.setEnableGSSAPIDebugging(enableGSSAPIDebugging); gssapiProperties.setJAASClientName(jaasClientName); gssapiProperties.setSASLClientServerName(saslClientServerName); gssapiProperties.setIsInitiator(isInitiator); gssapiProperties.setSuppressedSystemProperties( suppressedSystemProperties); // Fix: gssapiProperties.setChannelBindingType(channelBindingType);
final GSSAPIBindRequest bindRequest = new GSSAPIBindRequest(gssapiProperties, controls); bindRequest.setResponseTimeoutMillis(getResponseTimeoutMillis(null)); return bindRequest; } catch (final Exception e) { // This should never happen. Debug.debugException(e); return null; } }`