use of com.sequenceiq.freeipa.api.v1.ldap.model.test.TestLdapConfigResponse in project cloudbreak by hortonworks.
the class LdapConfigV1Service method testConnection.
public TestLdapConfigResponse testConnection(TestLdapConfigRequest testLdapConfigRequest) {
LdapConfig ldapConfig = null;
if (testLdapConfigRequest.getLdap() != null) {
ldapConfig = convertMinimalLdapConfigRequestToLdapConfig(testLdapConfigRequest.getLdap());
}
String result = ldapConfigService.testConnection(testLdapConfigRequest.getEnvironmentCrn(), ldapConfig);
TestLdapConfigResponse testLdapConfigResponse = new TestLdapConfigResponse();
testLdapConfigResponse.setResult(result);
return testLdapConfigResponse;
}
Aggregations