1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
3 <refentry id="ldbedit.1">
6 <refentrytitle>ldbedit</refentrytitle>
7 <manvolnum>1</manvolnum>
12 <refname>ldbedit</refname>
13 <refpurpose>Edit LDB databases using your preferred editor</refpurpose>
18 <command>ldbedit</command>
19 <arg choice="opt">-?</arg>
20 <arg choice="opt">--usage</arg>
21 <arg choice="opt">-s base|one|sub</arg>
22 <arg choice="opt">-b basedn</arg>
23 <arg choice="opt">-a</arg>
24 <arg choice="opt">-e editor</arg>
25 <arg choice="opt">-H LDB-URL</arg>
26 <arg choice="opt">expression</arg>
27 <arg rep="repeat" choice="opt">attributes</arg>
32 <title>DESCRIPTION</title>
34 <para>ldbedit is a utility that allows you to edit LDB entries (in
35 tdb files, sqlite files or LDAP servers) using your preferred editor.
36 ldbedit generates an LDIF file based on your query, allows you to edit
37 the LDIF, and then merges that LDIF back into the LDB backend.
44 <title>OPTIONS</title>
52 Show list of available options, and a phrase describing what that option
62 Show list of available options. This is similar to the help option,
63 however it does not provide any description, and is hence shorter.
69 <term>-H <ldb-url></term>
72 LDB URL to connect to. For a tdb database,
73 this will be of the form
74 tdb://<replaceable>filename</replaceable>.
75 For a LDAP connection over unix domain
76 sockets, this will be of the form
77 ldapi://<replaceable>socket</replaceable>. For
78 a (potentially remote) LDAP connection over
79 TCP, this will be of the form
80 ldap://<replaceable>hostname</replaceable>. For
81 an SQLite database, this will be of the form
82 sqlite://<replaceable>filename</replaceable>.
88 <term>-s one|sub|base</term>
89 <listitem><para>Search scope to use. One-level, subtree or base.</para></listitem>
96 <para>Edit all records. This allows you to
97 apply the same change to a number of records
98 at once. You probably want to combine this
99 with an expression of the form
106 <term>-e editor</term>
107 <term>--editor editor</term>
109 <para>Specify the editor that should be used (overrides
110 the VISUAL and EDITOR environment
111 variables). If this option is not used, and
112 neither VISUAL nor EDITOR environment variables
113 are set, then the vi editor will be used.
119 <term>-b basedn</term>
120 <listitem><para>Specify Base Distinguished Name to use.</para></listitem>
125 <term>--verbose</term>
127 <para>Make ldbedit more verbose about the
128 operations that are being performed. Without
129 this option, ldbedit will only provide a
140 <title>ENVIRONMENT</title>
146 <para>LDB URL to connect to. This can be
147 overridden by using the -H command-line option.)
152 <term>VISUAL and EDITOR</term>
155 Environment variables used to determine what
156 editor to use. VISUAL takes precedence over
157 EDITOR, and both are overridden by the
158 -e command-line option.
167 <title>VERSION</title>
169 <para>This man page is correct for version 4.0 of the Samba suite.</para>
173 <title>SEE ALSO</title>
175 <para>ldb(3), ldbmodify(1), ldbdel(1), ldif(5), vi(1)</para>
180 <title>AUTHOR</title>
184 <ulink url="http://samba.org/~tridge/">Andrew Tridgell</ulink>.
188 If you wish to report a problem or make a suggestion then please see
189 the <ulink url="http://ldb.samba.org/"/> web site for
190 current contact and maintainer information.
194 This manpage was written by Jelmer Vernooij and updated