Is there any sample code to show how to use the new ACL-Draft-12 group stuff?
Please have a look at default Domain.xml shipped with Slide 2.0b1. There, you'll find 4 users configured: /users/root, /users/john, /users/john2 and /users/guest. Moreover, there are 3 roles configured: /roles/root, /roles/user and /roles/guest. The user-role relationship is established through the DAV:group-member-set property. For instance, you'll find /users/john, /users/john2 and /users/root belonging to /roles/user. Note that /users/root is also a member of /roles/root.
Through WebDAV, you can link a user to a role by PROPPATCH'ing the DAV:group-member-set property of the role. As a non-standard feature, in Slide you also can create new principals through WebDAV by means of the MKCOL method, e.g. MKCOL /slide/users/peter creates a new user.
Merely the maintenance of users and roles over the native Slide API became a bit unhandy through the ACL-DRAFT-12 changes: the NodeProperty instances corresponding to DAV:group-member-set have to be properly provided with lists of XML <href> elements ... :( It is still a TODO to add some convenience here.
<snip>
This is hinted to in the documentation, and i agree it would be nice to see more information about its use. A few examples of adding a user and applying a group would be really handy to get a grip on it. My other question would also be how does one secure such access and changes, can anybody expand on this or proviide an example?
--
[EMAIL PROTECTED] <<<<<<<<<<<<<<<<<<<<<
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
