Link to home
Start Free TrialLog in
Avatar of sreins
sreins

asked on

LDAP Query

I need a simple LDAP query to retrieve an email address for a userid.

Something like the following

SELECT ????
FROM  'I Have this'
WHERE objectClass = '?????' and ?????='UserID to be inserted"
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

What are you using to run this? It looks like a SQL statement?

If you are just trying to get the email you can do the following assuming you have installed the adminpak.msi on your desktop.

Dsquery user -samid {username} | dsget user -ln -fn -email
ASKER CERTIFIED SOLUTION
Avatar of Joseph Daly
Joseph Daly
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
Avatar of sreins
sreins

ASKER

yes, this is what I needed.