Results 1 to 5 of 5

Thread: Adding Users through SOAP

  1. #1
    olay80 is offline Starter Member
    Join Date
    Feb 2007
    Posts
    2
    Rep Power
    8

    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

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  3. #3
    olay80 is offline Starter Member
    Join Date
    Feb 2007
    Posts
    2
    Rep Power
    8

    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

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    11

    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!

  5. #5
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    9

    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2007, 03:21 AM
  2. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 PM
  3. Initializing ldap...FAILED (256)
    By CVD in forum Installation
    Replies: 17
    Last Post: 03-10-2006, 09:47 AM
  4. Yet another get.DirectContext issue
    By dccpark in forum Installation
    Replies: 5
    Last Post: 03-08-2006, 01:25 PM
  5. Certify Error on (re)install
    By rodrigoccurvo in forum Installation
    Replies: 4
    Last Post: 09-23-2005, 09:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •