I have a asp.net web application which uses forms auth to login to the application. All the allowed users reside in "Users" table. It doesn't have any roles assigned as for now. Now i need the intranet users(users from active directory) to login directly to the application without logging in using username and password. ie. I need application behave as windows auth when an intranet user takes the application link and forms when others logs in.
Currently the application web.config contains no tag for authentication. I created two websites WebSite1 and WebSite2 in IIS 7.5 and pointed to the same physical location.For WebSite1 didnt enable either Forms or Windows Authentication but enabled Anonymous Authentication. For WebSite2 enabled Windows Authentication and Disabled the rest. Now WebSite1 has Forms authentication and WebSite2 with Windows Authentication. How can i achieve this using normal web.config for asp.net web application?