This content has been marked as final. Show 6 replies
That's a lookup, not a search.
Should I user full DN as a base - (root context) and search scope as a base ?
But what will be the search filter? I want to retrieve the sAMAccountName and employeeID from user information in AD.
I am using:
ldapContext.search(searchBase, searchFilter, searchControls)
I think searchFilter= "(objectClass=user)" will work.
I don't know why you are still calling search(), and asking about search filters, when you've just been told that it isn't a search, it's a lookup.
If you don't understand the answer you were given, please say so. Don't just repeat and amplify the original question.
Yes, could you please explain me answer in detail?
Context.lookup(). Surely this is obvious? Surely if it isn't you could have done ten seconds of research into the API?