Click here to Skip to main content
15,891,936 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a client server architecture, both client and server are on windows XP system the server is in the domain, the client send to the server this authentications data:
UserName
DomainName
Sid

In the client side these data are obtained using:
C#
// Retrieve the user information from the token.
if (!GetTokenInformation(hToken, TokenUser, ptiUser, cbti, &cbti))
   __leave;
// Retrieve user name and domain name based on user's SID.
if (!LookupAccountSid(NULL, ptiUser->User.Sid, szUser, pcchUser,
      szDomain, pcchDomain, &snu))
   __leave;

Now on the server I need to verified if this user is logged into domain, we thought to use the LDAP API on the server, how can I do this?
The sid from client is the same as the user in the domain controller?
Posted
Updated 29-Jul-10 5:20am
v3

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