NAME

ldapwhoami - LDAP who am i? tool

SYNOPSIS

ldapwhoami [-n] [-v] [-z] [-d debuglevel] [-D binddn] [-W] [-w passwd] [-y passwdfile] [-H ldapuri] [-h ldaphost] [-p ldapport] [-O security-properties] [-I] [-Q] [-U authcid] [-R realm] [-x] [-X authzid] [-Y mech] [-Z[Z]]

DESCRIPTION

ldapwhoami implements the LDAP "Who Am I?" extended operation.

ldapwhoami opens a connection to an LDAP server, binds, and performs a whoami operation.

OPTIONS

-n
Show what would be done, but don't actually perform the whoami operation. Useful for debugging in conjunction with -v.
-v
Run in verbose mode, with many diagnostics written to standard output.
-d debuglevel
Set the LDAP debugging level to _d_e_b_u_g_l_e_v_e_l. ldapwhoami must be compiled with LDAP_DEBUG defined for this option to have any effect.
-x
Use simple authentication instead of SASL.
-D binddn
Use the Distinguished Name _b_i_n_d_d_n to bind to the LDAP directory.
-W
Prompt for simple authentication. This is used instead of specifying the password on the command line.
-w passwd
Use _p_a_s_s_w_d as the password for simple authentication.
-y passwdfile
Use complete contents of _p_a_s_s_w_d_f_i_l_e as the password for simple authentication.
-H ldapuri
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.
-h ldaphost
Specify an alternate host on which the ldap server is running. Deprecated in favor of -H.
-p ldapport
Specify an alternate TCP port where the ldap server is listening. Deprecated in favor of -H.
_<_b_>_-_P_<_/_b_>_<_i_> _2|_3_<_/_i_> _<_d_d_> _S_p_e_c_i_f_y _t_h_e _L_D_A_P _p_r_o_t_o_c_o_l _v_e_r_s_i_o_n _t_o _u_s_e_. _<_d_t_> _<_b_>_-_O_<_/_b_>_<_i_> _s_e_c_u_r_i_t_y_-_p_r_o_p_e_r_t_i_e_s_<_/_i_> _<_d_d_> _S_p_e_c_i_f_y _S_A_S_L _s_e_c_u_r_i_t_y _p_r_o_p_e_r_t_i_e_s_. _<_d_t_> _<_b_>_-_I_<_/_b_> _<_d_d_> _E_n_a_b_l_e _S_A_S_L _I_n_t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