ldbsearch - Search for records in a LDB database
Contents
Description
ldbsearch searches a LDB database for records matching the specified expression (see the ldapsearch(1)
manpage for a description of the expression format). For each record, the specified attributes are
printed.
Environment
LDB_URL
LDB URL to connect to (can be overridden by using the -H command-line option.)
Name
ldbsearch - Search for records in a LDB database
Notes
1. Andrew Tridgell
https://www.samba.org/~tridge/
LDB 1.1 07/21/2025 LDBSEARCH(1)
Options
-h
Show list of available options.
-H <ldb-url>
LDB URL to connect to. See ldb(3) for details.
-s one|sub|base
Search scope to use. One-level, subtree or base.
-i
Read search expressions from stdin.
-b basedn
Specify Base DN to use.
See Also
ldb(3), ldbedit(1)
Synopsis
ldbsearch [-h] [-s base|one|sub] [-b basedn] [-i] [-H LDB-URL] [expression] [attributes]
Version
This man page is correct for version 1.1 of LDB.
