Search in sources :

Example 1 with LmcAdminAuthRequest

use of com.zimbra.cs.client.soap.LmcAdminAuthRequest 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