Search in sources :

Example 1 with LmcAdminAuthResponse

use of com.zimbra.cs.client.soap.LmcAdminAuthResponse in project zm-mailbox by Zimbra.

the class TestUtil method getAdminSoapSession.

public static LmcSession getAdminSoapSession() throws Exception {
    // Authenticate
    LmcAdminAuthRequest auth = new LmcAdminAuthRequest();
    auth.setUsername(LC.zimbra_ldap_user.value());
    auth.setPassword(LC.zimbra_ldap_password.value());
    LmcAdminAuthResponse authResp = (LmcAdminAuthResponse) auth.invoke(getAdminSoapUrl());
    return authResp.getSession();
}
Also used : LmcAdminAuthResponse(com.zimbra.cs.client.soap.LmcAdminAuthResponse) LmcAdminAuthRequest(com.zimbra.cs.client.soap.LmcAdminAuthRequest)

Aggregations

LmcAdminAuthRequest (com.zimbra.cs.client.soap.LmcAdminAuthRequest)1 LmcAdminAuthResponse (com.zimbra.cs.client.soap.LmcAdminAuthResponse)1