Search in sources :

Example 1 with TestLdapConfigResponse

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;
}
Also used : LdapConfig(com.sequenceiq.freeipa.ldap.LdapConfig) TestLdapConfigResponse(com.sequenceiq.freeipa.api.v1.ldap.model.test.TestLdapConfigResponse)

Aggregations

TestLdapConfigResponse (com.sequenceiq.freeipa.api.v1.ldap.model.test.TestLdapConfigResponse)1 LdapConfig (com.sequenceiq.freeipa.ldap.LdapConfig)1