I am not sure i got the right forum..but my question is this..
I am looking for a code to retrieve user id from LDAP given that first name and last name are provided.
//////////////////////////////////////////////////////////////////////
// Get the child from the container.
// Note in the LDAP provider you can go down more than one level.
//////////////////////////////////////////////////////////////////////
IDispatch *pDisp = NULL;
IADs *pADs = NULL;
hr = pCont->GetObject(L"user", L"CN=Mike Smith, OU=DSys", &pDisp );
pCont->Release();
Thank you for reply!
I got as far as retrieveing all of the information about the user when i enter his name
I used printLDIF() for that...do you know how can i retrieve only the users mail id?
(if user name is Jane Doe her mail id would be jdoe)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.