]> git.sur5r.net Git - openldap/blob - doc/man/man1/ldapwhoami.1
Update copyright for next release
[openldap] / doc / man / man1 / ldapwhoami.1
1 .TH LDAPWHOAMI 1 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" $OpenLDAP$
3 .\" Copyright 1998-2009 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 .BI \-O \ security-properties\fR]
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 ldapwhoami
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 For SASL Binds, the server is expected to ignore this value.
77 .TP
78 .B \-W
79 Prompt for simple authentication.
80 This is used instead of specifying the password on the command line.
81 .TP
82 .BI \-w \ passwd
83 Use \fIpasswd\fP as the password for simple authentication.
84 .TP
85 .BI \-y \ passwdfile
86 Use complete contents of \fIpasswdfile\fP as the password for
87 simple authentication.
88 .TP
89 .BI \-H \ ldapuri
90 Specify URI(s) referring to the ldap server(s); only the protocol/host/port
91 fields are allowed; a list of URI, separated by whitespace or commas
92 is expected.
93 .TP
94 .BI \-h \ ldaphost
95 Specify an alternate host on which the ldap server is running.
96 Deprecated in favor of -H.
97 .TP
98 .BI \-p \ ldapport
99 Specify an alternate TCP port where the ldap server is listening.
100 Deprecated in favor of -H.
101 .TP
102 .BI \-P \ 2\fR\||\|\fI3
103 Specify the LDAP protocol version to use.
104 .TP
105 .BI \-O \ security-properties
106 Specify SASL security properties.
107 .TP
108 .B \-I
109 Enable SASL Interactive mode.  Always prompt.  Default is to prompt
110 only as needed.
111 .TP
112 .B \-Q
113 Enable SASL Quiet mode.  Never prompt.
114 .TP
115 .BI \-U \ authcid
116 Specify the authentication ID for SASL bind. The form of the ID
117 depends on the actual SASL mechanism used.
118 .TP
119 .BI \-R \ realm
120 Specify the realm of authentication ID for SASL bind. The form of the realm
121 depends on the actual SASL mechanism used.
122 .TP
123 .BI \-X \ authzid
124 Specify the requested authorization ID for SASL bind.
125 .I authzid
126 must be one of the following formats:
127 .B dn:\c
128 .I <distinguished name>
129 or
130 .B u:\c
131 .I <username>
132 .TP
133 .BI \-Y \ mech
134 Specify the SASL mechanism to be used for authentication. If it's not
135 specified, the program will choose the best mechanism the server knows.
136 .TP
137 .B \-Z[Z]
138 Issue StartTLS (Transport Layer Security) extended operation. If you use
139 .B \-ZZ\c
140 , the command will require the operation to be successful.
141 .SH EXAMPLE
142 .nf
143     ldapwhoami -x -D "cn=Manager,dc=example,dc=com" -W
144 .fi
145 .SH "SEE ALSO"
146 .BR ldap.conf (5),
147 .BR ldap (3),
148 .BR ldap_extended_operation (3)
149 .SH AUTHOR
150 The OpenLDAP Project <http://www.openldap.org/>
151 .SH ACKNOWLEDGEMENTS
152 .so ../Project