Ok, I thought I was starting to grasp the repository thing, but now that I'm actually trying to implement an external repository it turns out I know less than I thought I did. Here's what I have:
M2.1 with LDAP authentication to domain.com enabled and working
WebDAV server on a QNAP NAS bound to domain.com
WebDAV repository enabled in Moodle 2.0
Now here's what I can't figure out how to do: any kind of access control.
Let's pretend that I want teachers to be able to store their files on webdav and use that to add files to their courses, how do I get 'teacher 1' to see the 'teacher 1' webdav share, but not the 'teacher 2' webdav share and vice-versa?
What I want is this:
Outside of Moodle a user connects to a webdav server and only has access permissions to their share or folder in a share. Inside Moodle the user only has access to that same share or folder in a share, and I want all of the access control to be managed by domain.com. Is this possible with WebDAV, and if not, is it possible with anything?