I have two machines:
- Windows 2008 - for Active Directory
- Windows 7 - installed with IIS7, it also serves as development machine. Note that this PC is not member of the domain.
I tried Forms Authentication and it's working fine with this configuration in my web.config:
<connectionStrings>
<add name="ADConn" connectionString="LDAP://192.168.0.21" />
</connectionStrings>
<membership defaultProvider="ADMembership">
<providers>
<add name="ADMembership"
type="System.Web.Security.ActiveDirectoryMembershipProvider"
connectionStringName="ADConn"
connectionUsername="dominic"
attributeMapUsername="sAMAccountName"
connectionPassword="p@ssw0rd" />
</providers>
</membership>
Now I want to change from Form to Windows Authentication. My questions are:
- What configurations do I need to add in Web.Config to enable Windows Authentication?
- What configurations should be done in IIS to enable Windows Authentication?
- Do I need to configure Windows Firewall?
- When logging in using Windows Authentication, what should be my username? Is it "192.168.0.21\dominic" or "dominic"?
- Did I miss to ask any question?
I tried many tutorials today but it's either giving me 403 or it's not accepting my username and password. If you know any complete step-by-step tutorial, please let me know.