0

I want to run an LDAP query from a command line on a linux system. (CentOS 5.8) i.e., I want to run the following query to look up a user's DN:

(&(objectCategory=Person)(objectClass=user)(sAMAccountName=username))

How can I run this LDAP query from a linux command line and have it return query results for the provided username? I have red up on using LDAPSEARCH but cannot locate it on my CentOS 5.8 distribution.

fareed
  • 3,034
  • 6
  • 37
  • 65
chumley
  • 173
  • 2
  • 4
  • 7

1 Answers1

2

If you can't find ldapsearch then install it (should be within package openldap-clients)

deagh
  • 2,647
  • 1
  • 30
  • 29