1LDAPWHOAMI(1)               General Commands Manual              LDAPWHOAMI(1)
2
3
4

NAME

6       ldapwhoami - LDAP who am i? tool
7

SYNOPSIS

9       ldapwhoami  [-n] [-v] [-z] [-d debuglevel] [-D binddn] [-W] [-w passwd]
10       [-y passwdfile]      [-H ldapuri]      [-h ldaphost]      [-p ldapport]
11       [-e [!]ext[=extparam]]  [-E [!]ext[=extparam]] [-O security-properties]
12       [-I] [-Q] [-U authcid] [-R realm] [-x] [-X authzid] [-Y mech] [-Z[Z]]
13

DESCRIPTION

15       ldapwhoami implements the LDAP "Who Am I?" extended operation.
16
17       ldapwhoami opens a connection to an LDAP server, binds, and performs  a
18       whoami operation.
19

OPTIONS

21       -n     Show  what  would be done, but don't actually perform the whoami
22              operation.  Useful for debugging in conjunction with -v.
23
24       -v     Run in verbose mode, with many diagnostics written  to  standard
25              output.
26
27       -d debuglevel
28              Set  the LDAP debugging level to debuglevel.  ldapwhoami must be
29              compiled with LDAP_DEBUG defined for this  option  to  have  any
30              effect.
31
32       -x     Use simple authentication instead of SASL.
33
34       -D binddn
35              Use the Distinguished Name binddn to bind to the LDAP directory.
36              For SASL binds, the server is expected to ignore this value.
37
38       -W     Prompt for simple authentication.  This is used instead of spec‐
39              ifying the password on the command line.
40
41       -w passwd
42              Use passwd as the password for simple authentication.
43
44       -y passwdfile
45              Use  complete  contents of passwdfile as the password for simple
46              authentication.
47
48       -H ldapuri
49              Specify URI(s) referring to the ldap server(s); only the  proto‐
50              col/host/port  fields  are  allowed; a list of URI, separated by
51              whitespace or commas is expected.
52
53       -h ldaphost
54              Specify an alternate host on which the ldap server  is  running.
55              Deprecated in favor of -H.
56
57       -p ldapport
58              Specify  an  alternate TCP port where the ldap server is listen‐
59              ing.  Deprecated in favor of -H.
60
61       -O security-properties
62              Specify SASL security properties.
63
64       -e [!]ext[=extparam]
65
66       -E [!]ext[=extparam]
67
68              Specify general extensions with -e and  search  extensions  with
69              -E.  ´!´ indicates criticality.
70
71              General extensions:
72                [!]assert=<filter>   (an RFC 4515 Filter)
73                [!]authzid=<authzid> ("dn:<dn>" or "u:<user>")
74                [!]manageDSAit
75                [!]noop
76                ppolicy
77                [!]postread[=<attrs>]        (a comma-separated attribute list)
78                [!]preread[=<attrs>] (a comma-separated attribute list)
79                abandon, cancel (SIGINT sends abandon/cancel; not really controls)
80
81              Search extensions:
82                [!]domainScope                               (domain scope)
83                [!]mv=<filter>                               (matched values filter)
84                [!]pr=<size>[/prompt|noprompt]       (paged results/prompt)
85                [!]sss=[-]<attr[:OID]>[/[-]<attr[:OID]>...]  (server side sorting)
86                [!]subentries[=true|false]           (subentries)
87                [!]sync=ro[/<cookie>]                        (LDAP Sync refreshOnly)
88                        rp[/<cookie>][/<slimit>]     (LDAP Sync refreshAndPersist)
89
90       -I     Enable  SASL  Interactive  mode.   Always prompt.  Default is to
91              prompt only as needed.
92
93       -Q     Enable SASL Quiet mode.  Never prompt.
94
95       -U authcid
96              Specify the authentication ID for SASL bind. The form of the  ID
97              depends on the actual SASL mechanism used.
98
99       -R realm
100              Specify  the  realm of authentication ID for SASL bind. The form
101              of the realm depends on the actual SASL mechanism used.
102
103       -X authzid
104              Specify the requested authorization ID for SASL  bind.   authzid
105              must be one of the following formats: dn:<distinguished name> or
106              u:<username>
107
108       -Y mech
109              Specify the SASL mechanism to be  used  for  authentication.  If
110              it's  not  specified, the program will choose the best mechanism
111              the server knows.
112
113       -Z[Z]  Issue StartTLS (Transport Layer Security) extended operation. If
114              you  use  -ZZ, the command will require the operation to be suc‐
115              cessful.
116

EXAMPLE

118           ldapwhoami -x -D "cn=Manager,dc=example,dc=com" -W
119

SEE ALSO

121       ldap.conf(5), ldap(3), ldap_extended_operation(3)
122

AUTHOR

124       The OpenLDAP Project <http://www.openldap.org/>
125

ACKNOWLEDGEMENTS

127       OpenLDAP Software is developed and maintained by The  OpenLDAP  Project
128       <http://www.openldap.org/>.   OpenLDAP Software is derived from Univer‐
129       sity of Michigan LDAP 3.3 Release.
130
131
132
133OpenLDAP 2.4.23                   2010/06/30                     LDAPWHOAMI(1)
Impressum