ldapsearch

Introduction

ldapsearch opens a connection to an LDAP server, binds, and performs a search using specified parameters.

Get the Naming Context

A naming context is a logical portion of the AD. Naming contexts are also known as directory partitions. Each partition has an independent replication scope and scheduling. By default the following are in AD for enterprise:

  • Schema

  • Configuration

  • Domain For more detailed information: https://docs.microsoft.com/en-us/windows/win32/ad/naming-contexts-and-partitions

ldapsearch -h 10.10.10.193 -x -s base namingcontexts

Get the Objects

ldapsearch -h 10.10.10.193 -x -b "DC=fabricorp,DC=local"

Last updated

Was this helpful?