Installing NTAuthenticationProviders at the Application Level in IIS 6

I have the following structure in IIS.

Internet Information Services  
 (local computer)
  Web Sites  
   Default Web Site  
    MyApplication

MyApplication is an application in IIS.

Windows Integrated Authentication is NOT installed on Default Web Site. However, I want to install integrated Windows authentication on MyApplication. (This is an intranet application).

This can be done using the graphical interface: right-click on Default Web Siteand select Properties. Select a tab Directory Securityand click Editon the anonymous access and authentication control.

I want to include this in a script setup. I have other configuration commands using adsutil.vbs, but I'm struggling to configure Integrated Windows authentication.

Duration:

cscript//nologo c:\Inetpub\AdminScripts\adsutil.vbs GET/W3SVC/1/NTAuthenticationProviders

NTAuthenticationProviders       : (STRING) "NTLM"

, exepcted,

cscript//nologo c:\Inetpub\AdminScripts\adsutil.vbs GET/W3SVC/1/ROOT/MyApplication/NTAuthenticationProviders

Error Trying To GET the property: (Get Method Failed)
NTAuthenticationProviders (This property is probably not allowed at this node)

NTAuthenticationProviders Metabase ?

+5
1

, IIS Directory Security → Authentication Methods, AuthFlags.

- :

MetaBase AuthFlags (IIS 6.0) (TechNet)

Windows (AuthNTLM), ( , - , IISNumber: 1) -

adsutil.vbs SET /W3SVC/1/ROOT/MyApplication/AuthFlags 4

, , NTLM, , , . MD_AUTH_BASIC | AuthNTLM. 6:

:: Set both NTLM and Basic authentication
adsutil.vbs SET /W3SVC/1/ROOT/MyApplication/AuthFlags 6

​​(C:\WINDOWS\system32\inetsrv\MetaBase.xml) :

Location="/LM/W3SVC/1/ROOT/MyApplication"

... , ( 6, ):

AuthFlags="AuthBasic | AuthNTLM"

, , ( IISRESET ).

+4

All Articles