Avatar of Shanmugam Rajagopal
Shanmugam Rajagopal
 asked on

C++ get user from AD (VS6)

Hi, How do I get the user info from AD using C++ (VS6)? I used GetUserName to get it but it wont be correct when people create a local account and login . Please advice.
C++

Avatar of undefined
Last Comment
Kevin Stanush

8/22/2022 - Mon
evilrix

Tried GetUserNameEx?
Shanmugam Rajagopal

ASKER
GetUserNameEx will not return Active Directory user it returns local user. AD has to be retrieved thru Kerberos tocken for the user.
evilrix

Fair enough. It was just a suggestion as I was on my phone at the time. I'm sorry, I don't have a definitive answer but there are plenty of Windows specialist programmers who might. I'll ping jkr and see if he can help you.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Shanmugam Rajagopal

ASKER
Any suggestion?
ASKER CERTIFIED SOLUTION
Kevin Stanush

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.