A client of mine is using some older software I had written on a newer server setup. Despite having a connectionstring declared in the web.config file, the program keeps trying to log in as the current user and dumping out the error:
Login failed for user ‘DOMAIN\currentUserJimbo’
Any ideas what would be causing this?
Their setup
- Windows Server 2008
- IIS 7
- MSSQL 2005
If you have integrated authentication in the connection string and have enabled impersonation you should see that behaviour.
Integrated authentication will cause the web site to log on to the SQL server using the thread’s current principal. When enabling impersonation, the thread will take the identity of the client. This can be useful if the web server is to access files or other resources on behalf of the user.