2 .\" This contribution is derived from OpenLDAP Software.
3 .\" All of the modifications to OpenLDAP Software represented in this
4 .\" contribution were developed by Peter Marschall <peter@adpm.de>.
5 .\" I have not assigned rights and/or interest in this work to any party.
7 .\" Copyright 2009 Peter Marschall
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted only as authorized by the OpenLDAP Public License.
11 .\" A copy of this license is available in file LICENSE in the
12 .\" top-level directory of the distribution or, alternatively, at
13 .\" http://www.OpenLDAP.org/license.html.
18 ldapexop \- issue LDAP extended operations
27 .BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]]
29 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]]
43 .BI \-O \ security-properties\fR]
45 .BI \-o \ opt\fR[\fP = optparam\fR]]
81 .BI cancel \ cancel-id
83 .BI refresh \ DN \ \fR[\fIttl\fR]}
86 ldapexop issues the LDAP extended operation specified by \fBoid\fP
87 or one of the special keywords \fBwhoami\fP, \fBcancel\fP, or \fBrefresh\fP.
89 Additional data for the extended operation can be passed to the server using
90 \fIdata\fP or base-64 encoded as \fIb64data\fP in the case of \fBoid\fP,
91 or using the additional parameters in the case of the specially named extended
94 Please note that ldapexop behaves differently for the same extended operation
95 when it was given as an OID or as a specialliy named operation:
97 Calling ldapexop with the OID of the \fBwhoami\fP (RFC 4532) extended operation
100 ldapexop [<options>] 1.3.6.1.4.1.4203.1.11.3
106 # extended operation response
107 data:: <base64 encoded response data>
110 while calling it with the keyword \fBwhoami\fP
113 ldapexop [<options>] whoami
119 dn:<client's identity>
127 Set the LDAP debugging level to \fIlevel\fP.
130 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
132 .BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
133 Specify general extensions. \'!\' indicates criticality.
135 [!]assert=<filter> (an RFC 4515 Filter)
136 !authzid=<authzid> ("dn:<dn>" or "u:<user>")
137 [!]bauthzid (RFC 3829 authzid control)
138 [!]chaining[=<resolve>[/<cont>]]
142 [!]postread[=<attrs>] (a comma-separated attribute list)
143 [!]preread[=<attrs>] (a comma-separated attribute list)
145 sessiontracking[=<username>]
146 abandon,cancel,ignore (SIGINT sends abandon/cancel,
147 or ignores response; if critical, doesn't wait for SIGINT.
151 .BR \-o \ \fIopt\fP [ =\fIoptparam\fP ]
153 Specify general options.
157 nettimeout=<timeout> (in seconds, or "none" or "max")
158 ldif-wrap=<width> (in columns, or "no" for no wrapping)
162 Read operations from \fIfile\fP.
165 Specify the host on which the ldap server is running.
166 Deprecated in favor of \fB\-H\fP.
169 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
170 fields are allowed; a list of URI, separated by whitespace or commas
174 Enable SASL Interactive mode. Always prompt. Default is to prompt
178 Show what would be done but don't actually do it.
179 Useful for debugging in conjunction with \fB\-v\fP.
182 Do not use reverse DNS to canonicalize SASL host name.
184 .BI \-O \ security-properties
185 Specify SASL security properties.
187 .BI \-o \ opt\fR[\fP = optparam\fR]
188 Specify general options:
190 nettimeout=<timeout> (in seconds, or "none" or "max")
194 Specify the TCP port where the ldap server is listening.
195 Deprecated in favor of \fB\-H\fP.
198 Enable SASL Quiet mode. Never prompt.
201 Specify the realm of authentication ID for SASL bind. The form of the realm
202 depends on the actual SASL mechanism used.
205 Specify the authentication ID for SASL bind. The form of the ID
206 depends on the actual SASL mechanism used.
209 Run in verbose mode, with many diagnostics written to standard output.
212 Print version info and usage message.
213 If\fB\-VV\fP is given, only the version information is printed.
216 Use \fIpasswd\fP as the password for simple authentication.
219 Prompt for simple authentication.
220 This is used instead of specifying the password on the command line.
223 Use simple authentication instead of SASL.
226 Specify the requested authorization ID for SASL bind.
228 must be one of the following formats:
229 .BI dn: "<distinguished name>"
234 Use complete contents of \fIfile\fP as the password for
235 simple authentication.
238 Specify the SASL mechanism to be used for authentication.
239 Without this option, the program will choose the best mechanism the server knows.
242 Issue StartTLS (Transport Layer Security) extended operation.
243 Giving it twice (\fB\-ZZ\fP) will require the operation to be successful.
246 Exit status is zero if no errors occur.
247 Errors result in a non-zero exit status and
248 a diagnostic message being written to standard error.
251 .BR ldap_extended_operation_s (3)
254 This manual page was written by Peter Marschall
255 based on \fBldapexop\fP's usage message and a few tests
257 Do not expect it to be complete or absolutely correct.