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.
> On Nov 12, 2014, at 10:56 AM, Gaurav Jain <monkeyfdude@gmail.com> wrote:
>
> Hello,
>
> I am trying to setup a "Calendar and Contacts" server for my application. It works great so far.
>
> I was using XMLDirectoryService with default "admin" and "wsanchez" principal accounts.
>
> Now, I was trying to setup an interface to create "new principal/account".
>
> Can you please provide pointers to examples / best practices to setup "new account" interface for Caldav server?
http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts.dtd
Also see the examples:
http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/accounts-test.xml
http://trac.calendarserver.org/browser/CalendarServer/trunk/conf/auth/resources-test.xml
-dre
>
>
> Regards,
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-users