2

I have a follow scenario:

SERVER 1 - IIS6 ASP.NET Web Application with Forms Authentication on Active Directory

SERVER 2 - SQL SERVER Database

How i can integrate the security of Forms Authentication AD with SQL Server?

My objective is use Forms AD authentication and integrate the user authenticated for get data profile.

Ex: SELECT * FROM [TABLE] WHERE [TABLE].[USER] = SYSTEM_USER

2 Answers 2

1

You can use the

User.Identity.Name

to get the username of the currently logged in user and pass that via a parameter to the database query that you use.

Sign up to request clarification or add additional context in comments.

1 Comment

OK, there is a way to integrate the authentication? Without pass parameters. For example, in SQL Server will SYSTEM_USER is the authenticated user in AD.
1

You should confire your application for SQL Membership provider. Some information here:

http://technet.microsoft.com/en-us/library/cc197472(office.12).aspx

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.