Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 04-26-2010, 07:01 AM
Loyal Member
 
Posts: 92
Default

Quote:
Originally Posted by asteichmann View Post
Anyway, try this. It has my most recent changes.
hi !

how can we test your pearl example under windows plateform ?
Reply With Quote
  #12 (permalink)  
Old 06-13-2010, 03:14 AM
Starter Member
 
Posts: 2
Default

Do you have example of using ZimbraSession.pm to create accounts ?
Reply With Quote
  #13 (permalink)  
Old 06-14-2010, 12:37 PM
Junior Member
 
Posts: 6
Default

No. I have the information account in a mysql DataBase!!
Reply With Quote
  #14 (permalink)  
Old 07-29-2010, 10:38 AM
Junior Member
 
Posts: 6
Default

Hi! it realy works!!

but i have a question, i wanna create an appointment like admin, i mean, i wanna create appointments in other zimbra account.

Thanks in advance
Reply With Quote
  #15 (permalink)  
Old 03-15-2012, 09:14 AM
Cam Cam is offline
New Member
 
Posts: 4
Default SSL issues using the perl modules

Hi,

I've installed ZCS 7.1.4 and I'm trying to use the perl modules to perform admin actions over the SOAP interface, no luck so far.

Everything runs but it seems the perl client running on the host does not trust the host's own self-issued SSL certificate.

The output I see is:

Code:
$ perl ./getacct.pl admin

RESPONSE: 
        Can't connect to localhost:7071 (certificate verify failed)

LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /opt/zimbra/zimbramon/lib/LWP/Protocol/http.pm line 51.


Error Handling Soap Response
not well-formed (invalid token) at line 1, column 3, byte 3 at /opt/zimbra/zimbramon/lib/x86_64-linux-thread-multi/XML/Parser.pm line 187
strace tells me perl is using /opt/zimbra/zimbramon/lib/Mozilla/CA/cacert.pem whilst verifying the certificate.

Has the default verification become more strict since the pm were written, or am I missing some step that allows the client to trust the server's own self-issued certificate?

TIA,

-Cam
Reply With Quote
  #16 (permalink)  
Old 03-16-2012, 10:27 AM
Cam Cam is offline
New Member
 
Posts: 4
Default

I got a bit further:

PERL_LWP_SSL_VERIFY_HOSTNAME=0

disables the checking, so the client is OK with the self-signed certificate. The perl script could be updated to set this in the environment.

I've since found the ZimbraCSharpClient and I'm looking at that now.
Reply With Quote
  #17 (permalink)  
Old 03-26-2012, 02:24 PM
Special Member
 
Posts: 149
Default

We've been having trouble with Zimbra 7. Does anyone else does Perl SOAP calls for account provisioning/deprovisioning?

With Zimbra 7, we seem to have a problem when a request succeeds. We get a corrupted XML like: '_content' => '<',

However, if the request fails, (ie trying to create an account that already exists), we get a proper XML.

Does anyone else uses Perl for account administration? TIA.
Reply With Quote
  #18 (permalink)  
Old 03-26-2012, 04:22 PM
Cam Cam is offline
New Member
 
Posts: 4
Default

To see if it works or not, I did CreateAccountRequest, and it worked for me.
I based my script on a fixed getacct.pl, where I had to check
find_child('sessionId')
had not returned undef, before I accessed ->content on it.

If in doubt, try the equivalent operation using zmprov -d and compare the XML to find out what's different.

-Cam
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.