I’m trying to search for a user’s title in LDAP using C#.
My current search is this, in which I’m trying to search for a Janitor named John Smith:
search.Filter = "(&(objectCategory=person)(objectClass=contact)(|(sn=Smith)(givenname=John)(title=Janitor)))";
It’s not working though.
Can anyone point me to where I’m going wrong? I know I’ve got the sn and givenname portion correct as that part works .. . but the title filter isn’t .
What LDAP server are you using ?
On CentOs DS, this one works :