|ldbedit [-?] [--usage] [-s base|one|sub] [-b basedn] [-a] [-e editor] [-H LDB-URL] [expression] [attributes...]|
ldbedit is a utility that allows you to edit LDB entries (in tdb files, sqlite files or LDAP servers) using your preferred editor. ldbedit generates an LDIF file based on your query, allows you to edit the LDIF, and then merges that LDIF back into the LDB backend.
-?, --helpShow list of available options, and a phrase describing what that option does.
--usageShow list of available options. This is similar to the help option, however it does not provide any description, and is hence shorter.
-H <ldb-url>LDB URL to connect to. For a tdb database, this will be of the form tdb://filename. For a LDAP connection over unix domain sockets, this will be of the form ldapi://socket. For a (potentially remote) LDAP connection over TCP, this will be of the form ldap://hostname. For an SQLite database, this will be of the form sqlite://filename.
-s one|sub|baseSearch scope to use. One-level, subtree or base.
-a, -allEdit all records. This allows you to apply the same change to a number of records at once. You probably want to combine this with an expression of the form "objectclass=*".
-e editor, --editor editorSpecify the editor that should be used (overrides the VISUAL and EDITOR environment variables). If this option is not used, and neither VISUAL nor EDITOR environment variables are set, then the vi editor will be used.
-b basednSpecify Base Distinguished Name to use.
-v, --verboseMake ldbedit more verbose about the operations that are being performed. Without this option, ldbedit will only provide a summary change line.
LDB_URLLDB URL to connect to. This can be overridden by using the -H command-line option.)
VISUAL and EDITOREnvironment variables used to determine what editor to use. VISUAL takes precedence over EDITOR, and both are overridden by the -e command-line option.
This man page is correct for version 1.1 of LDB.
ldb was written by [blue]Andrew Tridgell.
If you wish to report a problem or make a suggestion then please see the [blue] http://ldb.samba.org/ web site for current contact and maintainer information.
This manpage was written by Jelmer Vernooij and updated by Brad Hards.
1. Andrew Tridgell http://samba.org/~tridge/
|LDB 1&.1||LDBEDIT (1)||01/29/2013|