cevap

9

Windows oturum açmalarını işlemek için ayrı bir sayfa oluşturun. Bu sayfa kullanıcıyı doğrulayacak ve ardından Formlar çerezini onlar için ayarlayacaktır. Ardından, IIS 7'ye bu sayfadaki Windows kimlik doğrulamasını kullanmasını söylemek için sayfayı web.config dosyasına ekleyin.

<configuration> 
... 
<!-- this file captures the user and redirects to the login page --> 
    <location path="Account/WindowsLogin.aspx"> 
    <system.web> 
     <authorization> 
     <allow users="*" /> 
     </authorization> 
    </system.web> 
    <system.webServer> 
     <security> 
     <authentication> 
      <windowsAuthentication enabled="true" /> 
      <anonymousAuthentication enabled="false" /> 
     </authentication> 
     </security> 
    </system.webServer> 
    </location> 
</configuration> 
İlgili konular