0

Hi guys...
I am developing an windows application in c# with sql server as back end with windows authentication i want username and password for sequrity purpose can i set username and password without changing it to server authentication.

Thanks in advance.

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by bhagawatshinde
0

Hi bhaga,

I tried to do something similar in the past but could only manage to get the windows identity of the current windows user and not the password. It might be better security purposes to get the user to create a new password different to the one they use to log into their work station.

to get the windows identity i did this:

WindowsIdentity.GetCurrent().Name.ToString();

then simply stored it in a users table in the SQL server DB with the password entered by the user on a registration form.

Hope this helps

Edited by ChrisHunter

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.