openldap/doc/man/man1/ldapwhoami.1

181 lines
4.2 KiB
Groff
Raw Normal View History

2002-08-24 14:28:10 +08:00
.TH LDAPWHOAMI 1 "RELEASEDATE" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
2011-01-05 08:42:37 +08:00
.\" Copyright 1998-2011 The OpenLDAP Foundation All Rights Reserved.
2002-08-24 14:28:10 +08:00
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ldapwhoami \- LDAP who am i? tool
.SH SYNOPSIS
.B ldapwhoami
[\c
.BR \-n ]
[\c
.BR \-v ]
[\c
.BR \-z ]
[\c
.BI \-d \ debuglevel\fR]
[\c
.BI \-D \ binddn\fR]
[\c
.BR \-W ]
[\c
.BI \-w \ passwd\fR]
[\c
.BI \-y \ passwdfile\fR]
[\c
.BI \-H \ ldapuri\fR]
[\c
.BI \-h \ ldaphost\fR]
[\c
.BI \-p \ ldapport\fR]
[\c
.BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]]
[\c
.BR \-E \ [ ! ] \fIext\fP [ =\fIextparam\fP ]]
[\c
2005-09-07 09:14:17 +08:00
.BI \-O \ security-properties\fR]
2002-08-24 14:28:10 +08:00
[\c
.BR \-I ]
[\c
.BR \-Q ]
[\c
.BI \-U \ authcid\fR]
[\c
2002-09-03 03:25:10 +08:00
.BI \-R \ realm\fR]
[\c
2002-08-24 14:28:10 +08:00
.BR \-x ]
[\c
.BI \-X \ authzid\fR]
[\c
.BI \-Y \ mech\fR]
[\c
2009-06-03 08:43:44 +08:00
.BR \-Z [ Z ]]
2002-08-24 14:28:10 +08:00
.SH DESCRIPTION
.I ldapwhoami
implements the LDAP "Who Am I?" extended operation.
.LP
.B ldapwhoami
opens a connection to an LDAP server, binds, and performs a whoami
operation.
.SH OPTIONS
.TP
.B \-n
Show what would be done, but don't actually perform the whoami operation.
Useful for
2009-06-03 08:43:44 +08:00
debugging in conjunction with \fB\-v\fP.
2002-08-24 14:28:10 +08:00
.TP
.B \-v
Run in verbose mode, with many diagnostics written to standard output.
.TP
.BI \-d \ debuglevel
Set the LDAP debugging level to \fIdebuglevel\fP.
2005-09-07 09:14:17 +08:00
.B ldapwhoami
2002-08-24 14:28:10 +08:00
must be compiled with LDAP_DEBUG defined for this option to have any effect.
.TP
.B \-x
Use simple authentication instead of SASL.
.TP
.BI \-D \ binddn
Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
2009-06-03 08:43:44 +08:00
For SASL binds, the server is expected to ignore this value.
2002-08-24 14:28:10 +08:00
.TP
.B \-W
Prompt for simple authentication.
This is used instead of specifying the password on the command line.
.TP
.BI \-w \ passwd
Use \fIpasswd\fP as the password for simple authentication.
.TP
.BI \-y \ passwdfile
Use complete contents of \fIpasswdfile\fP as the password for
simple authentication.
.TP
.BI \-H \ ldapuri
2005-04-08 03:57:38 +08:00
Specify URI(s) referring to the ldap server(s); only the protocol/host/port
fields are allowed; a list of URI, separated by whitespace or commas
is expected.
2002-08-24 14:28:10 +08:00
.TP
.BI \-h \ ldaphost
Specify an alternate host on which the ldap server is running.
2009-06-03 08:43:44 +08:00
Deprecated in favor of \fB\-H\fP.
2002-08-24 14:28:10 +08:00
.TP
.BI \-p \ ldapport
Specify an alternate TCP port where the ldap server is listening.
2009-06-03 08:43:44 +08:00
Deprecated in favor of \fB\-H\fP.
2002-08-24 14:28:10 +08:00
.TP
.BI \-O \ security-properties
Specify SASL security properties.
.TP
.BR \-e \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
.TP
.BR \-E \ [ ! ] \fIext\fP [ =\fIextparam\fP ]
2011-01-05 05:45:01 +08:00
Specify general extensions with \fB\-e\fP and whoami extensions with \fB\-E\fP.
\'\fB!\fP\' indicates criticality.
General extensions:
.nf
2011-01-05 05:45:01 +08:00
[!]assert=<filter> (an RFC 4515 Filter)
!authzid=<authzid> ("dn:<dn>" or "u:<user>")
[!]bauthzid (RFC 3829 authzid control)
[!]chaining[=<resolve>[/<cont>]]
[!]manageDSAit
[!]noop
ppolicy
2011-01-05 05:45:01 +08:00
[!]postread[=<attrs>] (a comma-separated attribute list)
[!]preread[=<attrs>] (a comma-separated attribute list)
[!]relax
sessiontracking
abandon,cancel,ignore (SIGINT sends abandon/cancel,
or ignores response; if critical, doesn't wait for SIGINT.
not really controls)
.fi
2011-01-05 05:45:01 +08:00
WhoAmI extensions:
.nf
2011-01-05 05:45:01 +08:00
(none)
.fi
.TP
2002-08-24 14:28:10 +08:00
.B \-I
Enable SASL Interactive mode. Always prompt. Default is to prompt
only as needed.
.TP
.B \-Q
Enable SASL Quiet mode. Never prompt.
.TP
.BI \-U \ authcid
Specify the authentication ID for SASL bind. The form of the ID
depends on the actual SASL mechanism used.
.TP
2002-09-03 03:25:10 +08:00
.BI \-R \ realm
Specify the realm of authentication ID for SASL bind. The form of the realm
depends on the actual SASL mechanism used.
.TP
2002-08-24 14:28:10 +08:00
.BI \-X \ authzid
Specify the requested authorization ID for SASL bind.
.I authzid
must be one of the following formats:
2009-06-03 08:43:44 +08:00
.BI dn: "<distinguished name>"
2002-08-24 14:28:10 +08:00
or
2009-06-03 08:43:44 +08:00
.BI u: <username>
2002-08-24 14:28:10 +08:00
.TP
.BI \-Y \ mech
Specify the SASL mechanism to be used for authentication. If it's not
specified, the program will choose the best mechanism the server knows.
.TP
2009-06-03 08:43:44 +08:00
.BR \-Z [ Z ]
2002-08-24 14:28:10 +08:00
Issue StartTLS (Transport Layer Security) extended operation. If you use
2009-06-03 08:43:44 +08:00
\fB\-ZZ\fP, the command will require the operation to be successful.
2002-08-24 14:28:10 +08:00
.SH EXAMPLE
.nf
2009-06-03 08:43:44 +08:00
ldapwhoami \-x \-D "cn=Manager,dc=example,dc=com" \-W
2002-08-24 14:28:10 +08:00
.fi
.SH "SEE ALSO"
.BR ldap.conf (5),
.BR ldap (3),
.BR ldap_extended_operation (3)
2002-08-24 14:28:10 +08:00
.SH AUTHOR
The OpenLDAP Project <http://www.openldap.org/>
.SH ACKNOWLEDGEMENTS
2006-06-14 08:28:16 +08:00
.so ../Project