Searching with an LDAP filter

  1. Set the dn you wish to search through
    1. e.g., ou=Employees,dc=mycompaniesdomain,dc=com
  2. Set the filter
    1. e.g., (&(objectclass=inetorgperson)(uid=myfirstname.mylastname))
      1. inetorgperson is an LDAP standard "object", btw, there are a bunch of others
Btw: one can also -- quick and dirty -- dump the whole LDAP db to a ldif file, and do a text search on that.


Popular posts from this blog

Debugging pfsense firewall rules clearly and easily

Direct ssh to a server via proxy using putty/plink on Windows

telnet vs netcat