chucknorris/dropkick — pull request #42 by AkosLukacs (2012-03-23 15:21:11+00:00)
Title: Added "SetAuthentication" method to Iis7Task.

Contains 3 new methods:

```C#
//Enable or disable a given authentication type.
IisVirtualDirectoryOptions SetAuthentication(dropkick.Tasks.Iis.IISAuthenticationMode authenticationType, bool enabled);
//Disable all, but this one...
IisVirtualDirectoryOptions DisableAllAuthenticationBut(dropkick.Tasks.Iis.IISAuthenticationMode enabledAuthenticationType);
//Disables all authentication types.
IisVirtualDirectoryOptions DisableAllAuthentication();
```

Example usage:

```C#
//disable all authentication methods, and only enable windows authentication
s.Iis7Site(settings.SiteName)
.VirtualDirectory(settings.VirtualDirectoryName)
.DisableAllAuthenticationBut(IISAuthenticationMode.windowsAuthentication)
```

example output:
[iis7] Setting authentication for application 'testing': 'digestAuthentication' from 'False' to 'False'
[iis7] Setting authentication for application 'testing': 'anonymousAuthentication' from 'False' to 'False'
[iis7] Setting authentication for application 'testing': 'iisClientCertificateMappingAuthentication' from 'False' to 'False'
[iis7] Setting authentication for application 'testing': 'basicAuthentication' from 'True' to 'False'
[iis7] Setting authentication for application 'testing': 'clientCertificateMappingAuthentication' from 'False' to 'False'
[iis7] Setting authentication for application 'testing': 'windowsAuthentication' from 'False' to 'True'