I'm building an intranet web site (asp.net 3.5) which has windows authentication. Two questions:
- When the code behind makes a trusted connection to the SQL server, will it connect with app pool credentials or current page user credentials?
- Right now, with a blank page, when the internal user (logged in to the domain) tries to hit the page they get challenged with windows login screen, and their credentials don't work.
Is there anything else I need to setup in web.config or IIS for the windows authentication to work, other than adding <authentication mode="Windows"/>?