Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASPNET user password
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00845202
Message ID:
00845228
Views:
14
>I had read that the most secure way to make the connection from ASP.NET to SQL Server was to use windows authentication to the SQL Server database by forcing .NET to impersonate a local user. All good there.
>
>However, when I impersonate, I still need to expose the password in the web.config file ( just as I was previously exposing the db password in my web.config ).
>
>So, what gives? One of the reasons cited in the article I read about windows authentication ( I think i read it in the recent security issue of MSDN Mag ) being so great is that you didn't have to deal with the password.
>
>Feedback anyone?
>
>Dave

You don't need the password in the connect string with Windows Authentication.

Just added Trusted_Connection=true; to your connect string and take out uid and passwd. :D

Morgan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform