Search in sources :

Example 1 with LDAPConfigResponse

use of com.cloud.api.response.LDAPConfigResponse in project CloudStack-archive by CloudStack-extras.

the class LDAPConfigCmd method execute.

/////////////////////////////////////////////////////
/////////////// API Implementation///////////////////
/////////////////////////////////////////////////////
@Override
public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException {
    try {
        boolean result = _configService.updateLDAP(this);
        if (result) {
            LDAPConfigResponse lr = _responseGenerator.createLDAPConfigResponse(getHostname(), getPort(), getUseSSL(), getQueryFilter(), getSearchBase(), getBindDN());
            lr.setResponseName(getCommandName());
            this.setResponseObject(lr);
        }
    } catch (NamingException ne) {
        ne.printStackTrace();
    }
}
Also used : LDAPConfigResponse(com.cloud.api.response.LDAPConfigResponse) NamingException(javax.naming.NamingException)

Aggregations

LDAPConfigResponse (com.cloud.api.response.LDAPConfigResponse)1 NamingException (javax.naming.NamingException)1