I Developed ASP.NET application(3 Tier). Now the client requirement is, My application should open with the Window credential(Now i have changed application user credential and Window user credential same).
Can anyone please guide me how to proceed , i mean. When user opens my application it should not ask the credential, it should take from windows credential.
Thanks in advance


Suthish NairRank #92 · 22.8K reputationPosted Mar 27, 2013, 1:19 AM EDT
No need to do a password validation, because always valid AD user can access the system.
Farooque AliRank #7,940 · 231 reputationPosted Mar 27, 2013, 1:33 AM EDT
Thanks, Ok based on your reply we are getting user information. Then what about login validation all
Here i am passing the username and Password argument to DAL, from their am getting result, Now without password how this will validation.
Can you please explain this by providing some sample,
Here am code for passing uname and pwd ,
Dim res As LoginResult = BLL.EngineFactory.LoginEngine.DoLogin(Me.UName.Text, Me.UPass.Text, "")
Suthish NairRank #92 · 22.8K reputationPosted Mar 27, 2013, 2:25 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 20, 2013, 2:37 AM EDT
When you are using Windows Authentication, then you no need to require to validate password. You can only validate the current user against your database. In your main page (you can check in basepage also), get current user id by using active directory and then query against your table. if the user is exist then allow him to proceed else redirect to access denied/any error message page.
Please let me know if you need still more information.
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.