On Wed, May 18, 2011 at 5:40 PM, Marc Spitzer <span dir="ltr"><<a href="mailto:mspitzer@gmail.com">mspitzer@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Perhaps I just dont know enough about apache presently and need to</div>
read some but here is a sanitized webdav directory config:<br>
<br>
<Location "/userid"><br>
#AllowOverride None<br>
Options -Includes +Indexes<br>
#Order allow,deny<br>
#Allow from all<br>
Order Deny,Allow<br>
Deny from all<br>
AuthBasicProvider ldap<br>
AuthName "pilot project"<br>
AuthzLDAPAuthoritative off<br>
AuthLDAPURL ldap://url_here<br>
AuthType Basic<br>
Require user usrid<br>
satisfy any<br>
<br>
Dav on<br>
<br>
</Location><br>
<br>
While this does work maintaining 2-400 of these chunks is something I<br>
would like to dodge if possble.<br>
<div class="im"><br>
thanks,<br>
<br>
marc<div class="h5"><a href="http://lists.nycbug.org/mailman/listinfo/talk" target="_blank"></a><br>
</div></div></blockquote><div><br></div><div>I don't know of any drop-in ways to do this, although it would be a great open source project.</div><div><br></div><div>When I had to do something similar a couple years ago, I used a script to dynamically create the directories and write an .htaccess file to each of them. It seemed better than having a monolithic config, if for no other reason than I didn't want to have to restart the server with each change.</div>
<div><br></div><div>Same script modified an .htpasswd file, adding the username and password for the user. I like the LDAP approach better, though, since you probably already have a directory of users.</div></div><br>