Part 3. Verify that you have Authorization and Authentication configured
In IIS Manager, click on Default Web Site in the left pane, and choose the Authentication icon under IIS.
in this example (default install of IIS 7 in Windows Server 2008) we can see the following Authentication types are installed
Anonymous Authentication - Enabled
ASP.NET Impersonation - Disabled
Forms Authentication - Disabled
We want to add
Basic Authentication and
Windows Authentication to proceed further. To do this Click on Server Manager and scroll down to Roles Summary.
Click on
Web Server (IIS) and scroll down to Role Services.
In this example both Basic and Windows Authentication are not installed, so let's install them. click on
Add role services in the actions pane to the right.
scroll down to security and put a check mark in Basic and Windows Authentication, click next.
confirm your selections
and click install, once done you'll see a results screen
At this point you can close the IIS server manager, restart the
World Wide Web Publishing Service service (W3SVC) and go back into the IIS server manager, when you click on Default Web Site now and the Authentication icon, you should see the two new authentication methods added.
Right click on
Windows Authentication and choose
Enable (Note: You can use Basic Authentication with WebDAV, but the WebDAV redirector will only use Basic Authentication with SSL connections, so we will not be using it here, I just installed it so that you were aware of it.)
In IIS Manager, click the
Default Web Site under the
Sites node in the tree, Double-click the
Authorization rules icon.
NOTE: if (like me) you do not see the Authorization rules icon (feature) then go back into Server Manager, select Roles, Select Web Server (IIS), select Roles services and scroll down to Security, check if URL Authorization is installed, if it is not installed, click on Add role Services in the right pane and install it,
then restart the Internet Information Services (IIS) Manager. The icon (feature) should now appear....
When the Authorization feature opens, make sure that an
Allow rule is defined that includes the administrator account. IE: the default rule for IIS allowing access to
All Users will include the administrator account.
you can now test logging into your WebDav site using your administrator account by opening a command prompt and typing this
net use * http://localhost/
after a few moments you should see a result like this
Quote
If you don't see the above, for example if you get a an error like this
Quote
"System error 67 has occurred." The network name cannot be found.
then install the
Desktop Experience Feature using the Add Features Wizard) reboot the server and try again. The reason we need the Desktop Experience feature installed in Server 2008 is because it will install the Webclient service which is required for this.
Note: if you now get a new error which states
Quote
System error 1920 has occurred. The file cannot be accessed by the system.
Then you must open up IIS Manager, click on Default Web Site, and go into the
WebDav Authoring Rules and add the current user you are attempting to do this as (eg: add user DOMAIN\user). See below screenshot.
Tip: for a list of webdav errors and solutions to resolving them see
this page
so now we have mapped drive Z: to the WebDav site, using the administrator account and using the authorization rules we setup above, we have read/write/source acccess to the directory.