Can any one give example on how to configure apache http client to use ldap authentication instead of Basic authentication.
For basic authentication,following is the code.
HttpClient client = HttpClientBuilder.create().build();
HttpGet get = new HttpGet(get_taskStatus_url);
String authData = userName + ":" + userName;
String encoded = new sun.misc.BASE64Encoder().encode(authData
get.setHeader("Authorization", "Basic " + encoded);
HttpResponse cgResponse = client.execute(get);
what changes i need to make in oder to make ldap authentication instead of basic authentication.
Any help is greatly appreciated.
You seem to have CSS turned off.
Please don't fill out this field.
Sign up for the SourceForge newsletter: