Page 1 of 1

Example of an Authentication for zimbra zoap

Posted: Thu Sep 08, 2016 9:22 pm
by Rafael
Hi,

I having problems with authentications with zimbra/Soap, and the error as occurring is:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>no valid authtoken present</faultstring>
<detail>
<Error xmlns="urn:zimbra">
<Code>service.AUTH_REQUIRED</Code>
<Trace>qtp509886383-4885709:https://10.100.11.25:443/service/soap/:1473368777394:17d8c9df202a3cac:SoapEngine266</Trace>
</Error>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>


Someone have a example of how use the authentication?

I used the preauthkey for authtoken, is that right?

Best regards
Rafael

Re: Example of an Authentication for zimbra zoap

Posted: Thu Sep 08, 2016 9:29 pm
by msquadrat
The simplest way to get an example is to use zmprov with the --debug switch. Try

Code: Select all

zmprov --debug cto account

for example.