.\" Title: ldbsearch
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.73.1
.\" Date: 11/20/2008
.\" Manual: User Commands
.\" Source: Samba 3.2
.\"
.TH "LDBSEARCH" "1" "11/20/2008" "Samba 3\.2" "User Commands"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
ldbsearch - Search for records in a LDB database
.SH "SYNOPSIS"
.HP 1
ldbsearch [\-h] [\-s\ base|one|sub] [\-b\ basedn] [\-i] [\-H\ LDB\-URL] [expression] [attributes]
.SH "DESCRIPTION"
.PP
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\.
.SH "OPTIONS"
.PP
\-h
.RS 4
Show list of available options\.
.RE
.PP
\-H
.RS 4
LDB URL to connect to\. See ldb(7) for details\.
.RE
.PP
\-s one|sub|base
.RS 4
Search scope to use\. One\-level, subtree or base\.
.RE
.PP
\-i
.RS 4
Read search expressions from stdin\.
.RE
.PP
\-b basedn
.RS 4
Specify Base DN to use\.
.RE
.SH "ENVIRONMENT"
.PP
LDB_URL
.RS 4
LDB URL to connect to (can be overrided by using the \-H command\-line option\.)
.RE
.SH "VERSION"
.PP
This man page is correct for version 4\.0 of the Samba suite\.
.SH "SEE ALSO"
.PP
ldb(7), ldbedit(1)
.SH "AUTHOR"
.PP
ldb was written by
Andrew Tridgell\.
.PP
If you wish to report a problem or make a suggestion then please see the
: http://ldb.samba.org/
web site for current contact and maintainer information\.
.PP
This manpage was written by Jelmer Vernooij\.