<div dir="ltr">thanks a lot!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 11:09 AM, 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 class="HOEnZb"><div class="h5"><br>
&gt; On Nov 12, 2014, at 10:56 AM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com">monkeyfdude@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am trying to setup a &quot;Calendar and Contacts&quot; server for my application. It works great so far.<br>
&gt;<br>
&gt; I was using XMLDirectoryService with default &quot;admin&quot; and &quot;wsanchez&quot; principal accounts.<br>
&gt;<br>
&gt; Now, I was trying to setup an interface to create  &quot;new principal/account&quot;.<br>
&gt;<br>
&gt; Can you please provide pointers to examples / best practices to setup &quot;new account&quot; interface for Caldav server?<br>
<br>
</div></div>There is no CalDAV API for creating principals (i.e. ‘accounts’). If you’re using XML, just use your favorite XML library to add elements to the xml file specified in your config, in the form described in our DTDs.<br>
<br>
<a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd</a><br>
<br>
Also see the examples:<br>
<br>
<a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml</a><br>
<a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/resources-test.xml" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/resources-test.xml</a><br>
<br>
-dre<br>
<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; _______________________________________________<br>
&gt; calendarserver-users mailing list<br>
&gt; <a href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>
&gt; <a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users" target="_blank">https://lists.macosforge.org/mailman/listinfo/calendarserver-users</a><br>
<br>
</blockquote></div><br></div>