<div dir="ltr">Many thanks Andre for your reply. For sure that this helps.<div><br></div><div>One more question. As you said, in my tests I&#39;m using the XMLs where I previously created the users I need (I would use the default ones too). I saw that if you try to sync a Calendar client for an account or user that doesn&#39;t exist, you&#39;ll get an error. </div><div><br></div><div>My question is: if you choose as auth method LDAP are the users inside the server synchronized automatically? </div><div><br></div><div>Regards!</div><div>Maxi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 31, 2016 at 3:43 PM, Andre LaBranche <span dir="ltr">&lt;<a href="mailto:dre@apple.com" target="_blank">dre@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>Replies inline.</div><div><br><div><span class=""><blockquote type="cite"><div>On Mar 31, 2016, at 6:41 AM, Maximiliano Sbrocca &lt;<a href="mailto:maximiliano.sbrocca@santexgroup.com" target="_blank">maximiliano.sbrocca@santexgroup.com</a>&gt; wrote:</div><br><div><div dir="ltr">Hello everybody,<div><br><div><div><br></div><div>    My name is Maxi and I&#39;m analyzing caldav servers to implement in the company I&#39;m working for. The company has an app where events are created. Once it happen, emails are sent with ICS files. The idea is to also save the events in the caldav server. I&#39;ve this part working (dev mode) by calling the Darwin API (<a href="http://localhost:8008/calendars/users/" target="_blank">http://localhost:8008/calendars/users/</a>&lt;USER&gt;/calendar/&lt;ICS-File&gt;.ics and the ics file content in the request body). Then users will be able to sync their events against the caldav server. (This is also working. I was able to sync my events using Evolution and Thunderbird).</div><div><br></div><div>     What I need now, is some help with the API part for users creation. </div></div></div></div></div></blockquote><div><br></div></span><div>There is no such API. CalendarServer itself does not act as a directory service; instead it accesses an existing directory service in a read-only fashion to acquire the various record types used by the service. The options for the directory backend are: XML files, such as the ones you see in the SVN checkout under conf/auth, or LDAP.</div><div><br></div><div>The calendarserver_manage_princinpals tool does allow for creating location, resource, or &#39;address&#39; records (address records are used to support newer geo features), but not user records. For production uses, we generally don&#39;t recommend using the XML file method as it&#39;s not very interoperable. The interoperable, production-grade option is LDAP. You are still free to spin your own workflow around modification of the XML files, which might still be the path of least resistance if you don&#39;t need to interoperate with a lot of other things.</div><div><br></div><div>Hope this helps,</div><div>-dre</div><br><blockquote type="cite"><div><div><div class="h5"><div dir="ltr"><div><div><div>     Logged as the admin (admin/admin) I&#39;m making PUT calls to:</div><div><br></div><div><a href="http://localhost:8008/calendars/users/" target="_blank">http://localhost:8008/calendars/users/</a><br></div><div><br></div><div>     The request header has Authorization - Basic for admin/admin and the body I&#39;m sending is:</div><div><br></div><div><div>&lt;record type=&quot;user&quot;&gt;</div><div>    &lt;short-name&gt;maxi.sbrocca&lt;/short-name&gt;</div><div>    &lt;uid&gt;maxi.sbrocca&lt;/uid&gt;</div><div>    &lt;password&gt;password&lt;/password&gt;</div><div>    &lt;full-name&gt;Maxi Sbrocca&lt;/full-name&gt;</div><div>    &lt;email&gt;<a href="mailto:maximiliano.sbrocca@santexgroup.com" target="_blank">maximiliano.sbrocca@santexgroup.com</a>&lt;/email&gt;</div><div>  &lt;/record&gt;</div></div><div><br></div><div><br></div><div>     And the response error I&#39;m getting is:</div><div><br></div><div><div>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</div><div>&lt;error xmlns=&#39;DAV:&#39;&gt;</div><div>    &lt;need-privileges&gt;</div><div>        &lt;resource&gt;</div><div>            &lt;href&gt;/calendars/users/&lt;/href&gt;</div><div>            &lt;privilege&gt;</div><div>                &lt;write-content/&gt;</div><div>            &lt;/privilege&gt;</div><div>        &lt;/resource&gt;</div><div>    &lt;/need-privileges&gt;</div><div>&lt;/error&gt;</div></div><div><br></div><div>    I&#39;m not seeing any console log error:</div><div><br></div><div>2016-03-31T10:40:24-0300 [caldav-0]  [txweb2.server#info] PUT /calendars/users/ HTTP/1.1<br></div><div><br></div><div>     Could you please help me to find out what I&#39;m doing wrong?</div><div>   </div><div>Thanks in advance,</div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;margin:0px;background-color:rgb(255,255,255)"><b style="font-family:&#39;Times New Roman&#39;;font-size:inherit"><span style="font-size:15px;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">Sbrocca Hector Maximiliano</span></b><br></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap">Software Engineer</span></font></div><div dir="ltr" style="font-size:12.8px"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap"><br></span></font><div><br></div><div><img src="http://santexgroup.com/images/Santex_logo.png"><br></div><span style="font-size:15px;font-family:Calibri;vertical-align:baseline">Vélez Sársfield 576  4° piso.</span><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">  </span><span style="font-size:15px;font-family:Calibri;color:rgb(255,0,0);font-weight:bold;vertical-align:baseline"></span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">Córdoba, Argentina.              </span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">+54 (0351) 589 7070     </span><br><div><span style="vertical-align:baseline;font-size:15px;font-family:Calibri"><font color="#3333ff"><a href="http://www.santexgroup.com/" style="color:rgb(17,85,204)" target="_blank">www.santexgroup.com</a></font></span></div><div><br></div><div>Follow us</div><div><br></div><div><a href="https://www.facebook.com/SantexGroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/F.png"></a> <a href="https://twitter.com/santexgroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/T.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://plus.google.com/+Santexgroup/posts" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/G.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://www.linkedin.com/company/129740?trk=tyah&amp;trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A129740%2Cidx%3A1-1-1%2CtarId%3A1442929736721%2Ctas%3Asantex" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/L.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://www.youtube.com/user/TheSantexChannel" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/Y.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="http://santexgroup.com/blog/" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/B.png" style="font-size:12.8px"></a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div>
_______________________________________________<br>calendarserver-dev mailing list<br><a href="mailto:calendarserver-dev@lists.macosforge.org" target="_blank">calendarserver-dev@lists.macosforge.org</a><br><a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-dev" target="_blank">https://lists.macosforge.org/mailman/listinfo/calendarserver-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);margin:0px"><b style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-size:15px;font-family:Calibri;vertical-align:baseline;white-space:pre-wrap">Sbrocca Hector Maximiliano</span></b><br></p><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap">Software Engineer</span></font></div><div dir="ltr" style="font-size:12.8000001907349px"><font face="Calibri"><span style="font-size:15px;white-space:pre-wrap"><br></span></font><div><br></div><div><img src="http://santexgroup.com/images/Santex_logo.png"><br></div><span style="font-size:15px;font-family:Calibri;vertical-align:baseline">Vélez Sársfield 576  4° piso.</span><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">  </span><span style="font-size:15px;font-family:Calibri;color:rgb(255,0,0);font-weight:bold;vertical-align:baseline"></span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">Córdoba, Argentina.              </span><br style="font-size:13px"><span style="vertical-align:baseline;font-size:15px;font-family:Calibri">+54 (0351) 589 7070     </span><br><div><span style="vertical-align:baseline;font-size:15px;font-family:Calibri"><font color="#3333ff"><a href="http://www.santexgroup.com/" style="color:rgb(17,85,204)" target="_blank">www.santexgroup.com</a></font></span></div><div><br></div><div>Follow us</div><div><br></div><div><a href="https://www.facebook.com/SantexGroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/F.png"></a> <a href="https://twitter.com/santexgroup" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/T.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://plus.google.com/+Santexgroup/posts" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/G.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://www.linkedin.com/company/129740?trk=tyah&amp;trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A129740%2Cidx%3A1-1-1%2CtarId%3A1442929736721%2Ctas%3Asantex" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/L.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="https://www.youtube.com/user/TheSantexChannel" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/Y.png" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><a href="http://santexgroup.com/blog/" style="color:rgb(17,85,204)" target="_blank"><img src="http://santexgroup.com/images/B.png" style="font-size:12.8px"></a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>