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
  #1 (permalink)  
Old 04-27-2006, 04:46 PM
Junior Member
 
Posts: 5
Question attribute question

Hi:

I am trying to send in a CreateAccountRequest SOAP call to Zimbra API. If I just send in <name> and <password> elements. Zimbra create new account successfully. But when I try to add custom attributes to the xml, Zimbra returns http 500.

Here is the XML I am using :

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>ValidToken</authToken>
</context>
</soap:Header>
<soap:Body>
<CreateAccountRequest xmlns="urn:zimbraAdmin">
<name>name@domain</name>
<password>myverystrongpassword</password>
<a n="firstname">test</a>
<a n="lastname">test</a>
</CreateAccountRequest>
</soap:Body>
</soap:Envelope>


Any suggestions would be most welcome.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-27-2006, 05:15 PM
Zimbra Employee
 
Posts: 4,792
Default

You need to use valid LDAP attr names. The list is in the zimbraAccount object class. You can find it here.

http://cvs.zimbra.com:8080/viewrep/z....schema?r=MAIN

For the two you tried it should be gn (Givename) and sn (Sur Name)
__________________
Bugzilla - Wiki - Downloads - Offline Client
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.