title: Implementing Authentication for a WebDAV Servlet
body: <p>I am currently using <a href="http://sourceforge.net/projects/webdav-servlet/develop" rel="nofollow noreferrer">this</a> WebDAV Java Servlet Implementation, it's as far as I know the smallest and the easiest to use WebDAV java solution that doesn't depend on Tomcat ( Using WebLogic ).</p>
  
  <p>So I would like to extend this to use my underlying security layer which somewhat uses a database connection to authenticate users.</p>
  
  <p>My question is if this is possible? Does the HttpServletRequest even get the Authentication?</p>
  
  <p>Consider the following method header: </p>
  
  <pre><code>protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { }
  </code></pre>
  
  <p>Now I would like to use req.getPrincipal to get the User Principal containing the Username and Password. However, my getPrincipal always returns null even if I set my WebDAV client to Windows Authentication or anything else for that matter.</p>