c# - When you set a web directory property "AuthNTLM" using the DirectoryEntry object, what IIS setting are you actually changing? -


I am working to migrate our product installer to WiX from InstallShield.

To design web applications, the previous developers used custom action (written in C #) in the InstallShield, in Wix, it is no longer necessary because IIS supports deployment.

Anyway, one of the custom actions uses a directory directory to set the property of a web directory:

  DirectoryInterrorire. Properties ["AuthNTLM"] [0] = True;  

What does this setting do? I know that there is something with its security / permission, but what is this really set up in IIS? Is this one of the following enabled:

  • Integrated Windows authentication
  • Digest authentication
  • Basic authentication
  • .NET passport Authentication

Thanks!

A short time ago I answered the same question:

< / P>

AuthFlags (No AuthNTLM ) is a flag value. You can set it without any indication, for example:

  int MD_AUTH_ANONYMOUS = 1; Integer MD_AUTH_BASIC = 2; Int MD_AUTH_NT = 4; (DirectoryEntry website = w3svc.Children.Add (iisNumber, "IIsWebServer")) // // Configure website settings here (DirectoryEntry w3svc = new DirectoryEntry (@ "IIS: // Localhost / W3SVC")). .. ... Website. Comet Change (); (Using the DirectoryEntry siteRoot = webSite.Children.Add ("root", ISSchemaClasses.IIsWebVirtualDir)) {// Root App Settings Configure ... ... Only root and NTLM authentication site Allow Root.Properties [ "AuthFlags"] .Value = MD_AUTH_BASIC | MD_AUTH_NT siteRoot.CommitChanges (); }}}  

Comments