1 .TH SLAPD-SHELL 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2004 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 This backend is is primarily intended to be used in prototypes.
21 shell command has been removed since OpenLDAP 2.1.
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 add <pathname> <argument>...
40 <repeat { "suffix:" <database suffix DN> }>
41 <entry in LDIF format>
44 .B bind <pathname> <argument>...
48 <repeat { "suffix:" <database suffix DN> }>
50 method: <method number>
51 credlen: <length of <credentials>>
55 .B compare <pathname> <argument>...
59 <repeat { "suffix:" <database suffix DN> }>
64 .B delete <pathname> <argument>...
68 <repeat { "suffix:" <database suffix DN> }>
72 .B modify <pathname> <argument>...
76 <repeat { "suffix:" <database suffix DN> }>
79 <"add"/"delete"/"replace">: <attribute>
80 <repeat { <attribute>: <value> }>
85 .B modrdn <pathname> <argument>...
89 <repeat { "suffix:" <database suffix DN> }>
92 deleteoldrdn: <0 or 1>
93 <if new superior is specified: "newSuperior: <DN>">
96 .B search <pathname> <argument>...
100 <repeat { "suffix:" <database suffix DN> }>
102 scope: <0-2, see ldap.h>
103 deref: <0-3, see ldap.h>
104 sizelimit: <size limit>
105 timelimit: <time limit>
108 attrs: <"all" or space-separated attribute list>
111 .B unbind <pathname> <argument>...
115 <repeat { "suffix:" <database suffix DN> }>
119 Note that you need only supply configuration lines for those commands you
120 want the backend to handle.
121 Operations for which a command is not supplied will be refused with an
122 "unwilling to perform" error.
124 The commands - except \fBunbind\fP - should output:
129 matched: <matched DN>
133 where only RESULT is mandatory.
134 The \fBsearch\fP RESULT should be preceded by the entries in LDIF
135 format, each entry followed by a blank line.
136 Lines starting with `#' or `DEBUG:' are ignored.
138 There is an example search script in the slapd/back-shell/ directory
139 in the OpenLDAP source tree.
141 The shell backend does not support threaded environments.
142 When using the shell backend,
145 .IR --without-threads .
149 default slapd configuration file