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

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
  #1 (permalink)  
Old 03-01-2007, 11:50 PM
Starter Member
 
Posts: 2
Default Adding Users through SOAP

hello,

is it possible to add a user to zimbra LDAP directory through SOAP? i need to add users dynamically using C#.

Oliver
Reply With Quote
  #2 (permalink)  
Old 03-02-2007, 12:25 AM
Zimbra Employee
 
Posts: 1,434
Default Yes.

The <CreateAccount> admin SOAP command will create an account in Zimbra's LDAP. (Note that this command requires admin auth and must be sent to the admin port/URL.)

Please see the soap-admin.txt document for details.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 03-02-2007, 12:42 AM
Starter Member
 
Posts: 2
Default

hello,

can you please be more specific, to which port should i sent my post to? should i develop a listener on the zimbra server to interpret my SOAP messages or there already exists one?

thank you,
Oliver
Reply With Quote
  #4 (permalink)  
Old 03-02-2007, 07:35 AM
Zimbra Employee
 
Posts: 1,434
Default More details...

Yes, there's already a SOAP listener in the Zimbra server. That's how Zimbra's admin client does its RPCs.

Yes, that SOAP listener will handle <CreateAccount>. The doc I pointed you at should describe most if not all the admin commands the Zimbra server supports. <CreateAccount> is definitely in there!

No, I don't know what port you're running your admin service on. You set this up when you installed the software.

You need to send the request to the admin service (/service/admin/soap/) rather than the standard SOAP service (/service/soap/).
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 03-02-2007, 10:31 AM
Zimbra Employee
 
Posts: 228
Default

If you want to see a trace of the soap request/response for creating an account. you can run zmprov with the debug flag:

Code:
/opt/zimbra/bin/zmprov -d createAccount joe@domain.com secretpassword
You can also look a SoapProvisioning.java to see where the SOAP messages are constructed.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
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.