Hi All,

We are using the zimbra soap api in our java webapplication to automate the adminsitration of a zimbra system.
eg. to share a mailbox accounts for a group of other emails accounts.
Therefore the applicaiton need to get a LmcSession with the scope of a global admin.


protected LmcSession getLmcSession(Account acc) throws Exception {

LmcAdminAuthRequest authRequest = new LmcAdminAuthRequest();
authRequest.setRequestedAccountId(acc.getId());
authRequest.setUsername(getAdminCrd()[0]); // global admin Name
authRequest.setPassword(getAdminCrd()[1]); // global admin password
LmcAuthResponse authResponse = (LmcAuthResponse) authRequest
.invoke(getZimbraAdminUrl());
LmcSession session = authResponse.getSession();
if (session == null)
throw new MailServiceRequestException(
"FAILED TO START LMCSESSION");
return session;
}



This code works fine with a zimbra 7.x server but when we connect our application with a zimbra 8 we receive the following error.

Wed Nov 14 15:28:28 CET 2012 BEGIN TEST net.atos.canopy.mailservice.test.CreateFunctionalA ccountsUTest

com.zimbra.common.soap.SoapFaultException: no valid authtoken present
ExceptionId:qtp364656927-3267:https://192.168.50.101:7071/service/...:SoapEngine157
Code:service.AUTH_REQUIRED
at com.zimbra.common.soap.Soap12Protocol.soapFault(So ap12Protocol.java:88)
at com.zimbra.common.soap.SoapTransport.extractBodyEl ement(SoapTransport.java:354)
at com.zimbra.common.soap.SoapTransport.parseSoapResp onse(SoapTransport.java:313)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:260)
at com.zimbra.common.soap.SoapHttpTransport.invoke(So apHttpTransport.java:164)
at com.zimbra.common.soap.SoapTransport.invoke(SoapTr ansport.java:407)
at com.zimbra.cs.client.soap.LmcSoapRequest.invoke(Lm cSoapRequest.java:142)
at net.atos.canopy.mailservice.cmdclient.AbstractFunc tionalAccountHdl.getLmcSession(AbstractFunctionalA ccountHdl.java:65)
at net.atos.canopy.mailservice.cmdclient.AbstractFunc tionalAccountHdl.createShare(AbstractFunctionalAcc ountHdl.java:132)



Does the authentication method change in Version 8 ?
Thanks in advance