]> git.sur5r.net Git - openldap/blob - doc/man/man1/ldapwhoami.1
Sync with HEAD
[openldap] / doc / man / man1 / ldapwhoami.1
1 .TH LDAPWHOAMI 1 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2005 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
5 .SH NAME
6 ldapwhoami \- LDAP who am i? tool
7 .SH SYNOPSIS
8 .B ldapwhoami
9 [\c
10 .BR \-n ]
11 [\c
12 .BR \-v ]
13 [\c
14 .BR \-z ]
15 [\c
16 .BI \-d \ debuglevel\fR]
17 [\c
18 .BI \-D \ binddn\fR]
19 [\c
20 .BR \-W ]
21 [\c
22 .BI \-w \ passwd\fR]
23 [\c
24 .BI \-y \ passwdfile\fR]
25 [\c
26 .BI \-H \ ldapuri\fR]
27 [\c
28 .BI \-h \ ldaphost\fR]
29 [\c
30 .BI \-p \ ldapport\fR]
31 [\c
32 .BR \-O \ security-properties ]
33 [\c
34 .BR \-I ]
35 [\c
36 .BR \-Q ]
37 [\c
38 .BI \-U \ authcid\fR]
39 [\c
40 .BI \-R \ realm\fR]
41 [\c
42 .BR \-x ]
43 [\c
44 .BI \-X \ authzid\fR]
45 [\c
46 .BI \-Y \ mech\fR]
47 [\c
48 .BR \-Z[Z] ]
49 .SH DESCRIPTION
50 .I ldapwhoami
51 implements the LDAP "Who Am I?" extended operation.
52 .LP
53 .B ldapwhoami
54 opens a connection to an LDAP server, binds, and performs a whoami
55 operation.  
56 .SH OPTIONS
57 .TP
58 .B \-n
59 Show what would be done, but don't actually perform the whoami operation.
60 Useful for
61 debugging in conjunction with -v.
62 .TP
63 .B \-v
64 Run in verbose mode, with many diagnostics written to standard output.
65 .TP
66 .BI \-d \ debuglevel
67 Set the LDAP debugging level to \fIdebuglevel\fP.
68 .B ldapcompare
69 must be compiled with LDAP_DEBUG defined for this option to have any effect.
70 .TP
71 .B \-x 
72 Use simple authentication instead of SASL.
73 .TP
74 .BI \-D \ binddn
75 Use the Distinguished Name \fIbinddn\fP to bind to the LDAP directory.
76 .TP
77 .B \-W
78 Prompt for simple authentication.
79 This is used instead of specifying the password on the command line.
80 .TP
81 .BI \-w \ passwd
82 Use \fIpasswd\fP as the password for simple authentication.
83 .TP
84 .BI \-y \ passwdfile
85 Use complete contents of \fIpasswdfile\fP as the password for
86 simple authentication.
87 .TP
88 .BI \-H \ ldapuri
89 Specify URI(s) referring to the ldap server(s).
90 .TP
91 .BI \-h \ ldaphost
92 Specify an alternate host on which the ldap server is running.
93 Deprecated in favor of -H.
94 .TP
95 .BI \-p \ ldapport
96 Specify an alternate TCP port where the ldap server is listening.
97 Deprecated in favor of -H.
98 .TP
99 .BI \-P \ 2\fR\||\|\fI3
100 Specify the LDAP protocol version to use.
101 .TP
102 .BI \-O \ security-properties
103 Specify SASL security properties.
104 .TP
105 .B \-I
106 Enable SASL Interactive mode.  Always prompt.  Default is to prompt
107 only as needed.
108 .TP
109 .B \-Q
110 Enable SASL Quiet mode.  Never prompt.
111 .TP
112 .BI \-U \ authcid
113 Specify the authentication ID for SASL bind. The form of the ID
114 depends on the actual SASL mechanism used.
115 .TP
116 .BI \-R \ realm
117 Specify the realm of authentication ID for SASL bind. The form of the realm
118 depends on the actual SASL mechanism used.
119 .TP
120 .BI \-X \ authzid
121 Specify the requested authorization ID for SASL bind.
122 .I authzid
123 must be one of the following formats:
124 .B dn:\c
125 .I <distinguished name>
126 or
127 .B u:\c
128 .I <username>
129 .TP
130 .BI \-Y \ mech
131 Specify the SASL mechanism to be used for authentication. If it's not
132 specified, the program will choose the best mechanism the server knows.
133 .TP
134 .B \-Z[Z]
135 Issue StartTLS (Transport Layer Security) extended operation. If you use
136 .B \-ZZ\c
137 , the command will require the operation to be successful.
138 .SH EXAMPLE
139 .nf
140     ldapwhoami -x -D "cn=Manager,dc=example,dc=com" -W
141 .fi
142 .SH "SEE ALSO"
143 .BR ldap.conf (5),
144 .BR ldap (3),
145 .BR ldap_extended_operation (3)
146 .SH AUTHOR
147 The OpenLDAP Project <http://www.openldap.org/>
148 .SH ACKNOWLEDGEMENTS
149 .B OpenLDAP
150 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
151 .B OpenLDAP
152 is derived from University of Michigan LDAP 3.3 Release.