Friday 15 March 2013

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.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...