Link to home
Start Free TrialLog in
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.
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Tried GetUserNameEx?
Avatar of Shanmugam Rajagopal
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.
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.
Any suggestion?
ASKER CERTIFIED SOLUTION
Avatar of Kevin Stanush
Kevin Stanush
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial