Lines 392-398
Link Here
|
392 |
log.debug(username + " > D="+domain+" R="+realm + " M="+auth.getMechanism()); |
392 |
log.debug(username + " > D="+domain+" R="+realm + " M="+auth.getMechanism()); |
393 |
} |
393 |
} |
394 |
if (Mechanism.KERBEROS.equals(auth.getMechanism())) { |
394 |
if (Mechanism.KERBEROS.equals(auth.getMechanism())) { |
395 |
((AbstractHttpClient) client).getAuthSchemes().register(AuthPolicy.SPNEGO, new SPNegoSchemeFactory(true)); |
395 |
Boolean stripPort = (url.getPort() == HTTPConstants.DEFAULT_HTTP_PORT || url.getPort() == HTTPConstants.DEFAULT_HTTPS_PORT); |
|
|
396 |
|
397 |
((AbstractHttpClient) client).getAuthSchemes().register(AuthPolicy.SPNEGO, new SPNegoSchemeFactory(stripPort)); |
396 |
credentialsProvider.setCredentials(new AuthScope(null, -1, null), USE_JAAS_CREDENTIALS); |
398 |
credentialsProvider.setCredentials(new AuthScope(null, -1, null), USE_JAAS_CREDENTIALS); |
397 |
} else { |
399 |
} else { |
398 |
credentialsProvider.setCredentials( |
400 |
credentialsProvider.setCredentials( |