Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > SSPI and impers...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 4085 of 4146
Post > Topic >>

SSPI and impersonation

by Kasparov <ganesh.tambat@[EMAIL PROTECTED] > Oct 11, 2008 at 01:18 PM

I have an application which uses SSPI for authentication. I could
authenticate users successfully and impersonate the users.  (original
user A, impersonated user B)

Now when I do CreateThread after impersonating the user, the newly
created thread runs as the original user (as user A). I want the newly
created thread to run as the impersonated user (user B). I am not very
sure how should I populate the LPSECURITY_ATTRIBUTES in my case (I
guess thats the cause of this issue.)

Please see my code snippet below:

****
rc = (pf->ImpersonateSecurityContext)( &srvCtx );
....
threadRet = CreateThread( NULL,0, (LPTHREAD_START_ROUTINE)
Ganesh_Client_Impl, NULL, 0, NULL);
****


Second query I have is:
Is it possible for me to use the SSPI security context I have at the
server side to authenticate to another server. An SSPI client has
connected to server A and authenticated successfully. Now A has the
security context of the client. I want to use the SSPI context I have
on server A to authenticate again to server B. (A becomes SSPI client
and B becomes server, A uses the context it has to authenticate.)


Thanks in advance.

Ganesh Tambat
 




 1 Posts in Topic:
SSPI and impersonation
Kasparov <ganesh.tamba  2008-10-11 13:18:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 9:46:47 CST 2008.