Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm making a wcf service and want to use the security from sql

how can i use the client given credentials to connect to the sql server
the client credentials will be windows active directory credentials
the sql server uses active directory groups to give the clients access or not

Can you guys help me?



EDIT:

Have found sql connection integrated security sspi
that uses the wcf identity to connect to the sql server.

is this wcf identity the windows user that runs the service or is this the logged in client credentials?

EDIT2:

found: impersonation using delegation[^]

will test this maybe this is the solution
Posted
Updated 29-Apr-14 3:46am
v3
Comments
ZurdoDev 29-Apr-14 9:14am    
It is the credentials of the service.
BELGIUMsky 29-Apr-14 9:25am    
and can you change that with like impersonation or delegation?
ZurdoDev 29-Apr-14 9:32am    
I have not done wcf since it first came out. I would suggest googling that.
BELGIUMsky 29-Apr-14 9:45am    
what do you think i'm doing all day today?
ZurdoDev 29-Apr-14 9:48am    
Don't get testy. The first 2 google results for wcf impersonation are:
http://msdn.microsoft.com/en-us/library/ms730088(v=vs.110).aspx
and
http://msdn.microsoft.com/en-us/library/ff650591.aspx

They appear to have your answer, especially the second link.

1 solution

Hi,

In WCF you have wsHttpBinding which will help you to retrieve domain credentials.

Use below link to understand it more : http://msdn.microsoft.com/en-us/library/ff650619.aspx[^]

How to Connect SQL server Using windows auth : http://msdn.microsoft.com/en-us/library/ff647396.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900