1 .TH SLAPD-SHELL 5 "2 May 2002" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slapd-shell \- Shell backend to slapd
12 executes external programs to implement operations, and is designed to
13 make it easy to tie an existing database to the
17 .B "This backend's calling conventions have changed since OpenLDAP 2.0."
18 The operations receive a new "opid:" (operation ID) line, to be used
20 The "msgid:" line will be removed in a future version.
21 Also, abandon now gets a new "abandonid:" line.
25 options apply to the SHELL backend database.
26 That is, they must follow a "database shell" line and come before any
27 subsequent "backend" or "database" lines.
28 Other database options are described in the
32 These options specify the pathname and arguments of the program to
33 execute in response to the given LDAP operation.
34 Each option is followed by the input lines that the program receives:
36 .B abandon <pathname> <argument>...
40 msgid: <message ID of operation to abandon>
41 <repeat { "suffix:" <database suffix DN> }>
42 abandonid: <operation ID of operation to abandon>
45 .B add <pathname> <argument>...
50 <repeat { "suffix:" <database suffix DN> }>
51 <entry in LDIF format>
54 .B bind <pathname> <argument>...
59 <repeat { "suffix:" <database suffix DN> }>
61 method: <method number>
62 credlen: <length of <credentials>>
66 .B compare <pathname> <argument>...
71 <repeat { "suffix:" <database suffix DN> }>
76 .B delete <pathname> <argument>...
81 <repeat { "suffix:" <database suffix DN> }>
85 .B modify <pathname> <argument>...
90 <repeat { "suffix:" <database suffix DN> }>
93 <"add"/"delete"/"replace">: <attribute>
94 <repeat { <attribute>: <value> }>
99 .B modrdn <pathname> <argument>...
104 <repeat { "suffix:" <database suffix DN> }>
107 deleteoldrdn: <0 or 1>
108 <if new superior is specified: "newSuperior: <DN>">
111 .B search <pathname> <argument>...
116 <repeat { "suffix:" <database suffix DN> }>
118 scope: <0-2, see ldap.h>
119 deref: <0-3, see ldap.h>
120 sizelimit: <size limit>
121 timelimit: <time limit>
124 attrs: <"all" or space-separated attribute list>
127 .B unbind <pathname> <argument>...
132 <repeat { "suffix:" <database suffix DN> }>
138 is a "connection ID/message ID" string identifying an operation.
140 Note that you need only supply configuration lines for those commands you
141 want the backend to handle.
142 Operations for which a command is not supplied will be refused with an
143 "unwilling to perform" error.
145 The commands - except \fBabandon\fP and \fBunbind\fP - should output:
150 matched: <matched DN>
154 where only RESULT is mandatory.
155 The \fBsearch\fP RESULT should be preceded by the entries in LDIF
156 format, each entry followed by a blank line.
157 Lines starting with `#' or `DEBUG:' are ignored.
159 There is an example search script in the slapd/back-shell/ directory
160 in the OpenLDAP source tree.
164 default slapd configuration file