Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 15171 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > Between Windows Authentication and SQL S ...

Between Windows Authentication and SQL Server Authentication, which one is trusted and which one is untrusted?

Interview question and answer by: Charugoel | Posted on: 2/4/2009 | Category: ASP.NET Interview questions | Views: 7071 |
Ads
Ads


Answer:

Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Kumar_jay99 | Posted on: 10 May 2011 08:47:33 AM | Points: 10 | Alert Moderator 

Hi,

Windows Authentication is used when your user is tied up with the Windows Domain and you can validate the requested user against your domain controller or Active Directory.
You should choose Windows authentication if your user accounts are maintained by a domain controller or within Active Directory and there are no firewall issues.
The main benefit of using Windows authentication is that it can be coupled with IIS authentication so that you don't have to write any custom code. Compared to other authentication mechanisms, Windows authentication does not pass the user credentials over the wire. Windows authentication also provides a seamless user experience. Therefore Windows authentication should be used wherever possible.

When you configure ASP.NET for Windows authentication, it can be coupled with IIS authentication where IIS authenticates your application's users by using Basic authentication, Integrated Windows authentication, Digest authentication, or Client Certificate authentication. Both Integrated Windows authentication and Client Certificate authentication provide strong authentication, but Integrated Windows authentication is recommended unless you have a PKI infrastructure and your clients have certificates.

SQL Server Authentication is more storing the user information in the database and when user returns you pick there user name and password to validate against the stored information in SQL Server database. This approach is taken in the internet application where they can store some information during the signin and validate when they return back.

You have to Write a code to get the user information, Access the database and validate whether that user is registered user or not.

Hope that helps

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Charugoel

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 6/19/2013 12:33:58 AM