Click here to Skip to main content
14,970,597 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:

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

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?
Updated 29-Jul-10 5:20am

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