LDAPWHOAMI(1)
π LDAPWHOAMI(1) β the "who even am I" tool π
okay bestie, listen. this is a General Commands Manual page, and it's for the lil binary called ldapwhoami, which is literally just... asking an LDAP server "hey. who am I." no cap. it's giving main character energy, but the main character is you, and you have no idea who you are rn. iconic.
β¨ NAME β¨
ldapwhoami β the LDAP who am i? tool πͺ
πΈ SYNOPSIS πΈ
ldapwhoami [-V[V]] [-d debuglevel] [-n] [-v] [-x] [-D binddn] [-W]
[-w passwd] [-y passwdfile] [-H ldapuri] [-e [!]ext[=extparam]]
[-E [!]ext[=extparam]] [-o opt[=optparam]] [-O security-properties] [-I]
[-Q] [-N] [-U authcid] [-R realm] [-X authzid] [-Y mech] [-Z[Z]]
π¦ DESCRIPTION π¦
ldapwhoami implements the LDAP "Who Am I?" extended operation. and yeah, the name is literally that. it's not deep, it's not subtle, it's just the vibe check of the LDAP world. π
so what happens is: ldapwhoami opens a connection to an LDAP server, binds, and performs a whoami operation. that's the whole plot. no twists. periodt.
π OPTIONS π
okay here come the flags, and there are a lot of them, so buckle up babe π«Ά
-V[V]β print version info. and if you hit it twice, like-VV, then only the version information gets printed. nothing else. just vibes and version numbers. β-d debuglevelβ sets the LDAP debugging level to debuglevel. π but listen:ldapwhoamimust be compiled withLDAP_DEBUGdefined for this option to have literally any effect at all. no compile flag, no debug. sorry bestie.-nβ show what would be done, but don't actually perform the whoami operation. it's the dress rehearsal π. super useful for debugging when you pair it with-v.-vβ verbose mode. run it and you get β¨many diagnosticsβ¨ written to standard output. girl is chatty.-xβ use simple authentication instead of SASL. the "no thoughts, just a password" route π-D binddnβ use the Distinguished Name binddn to bind to the LDAP directory. and heads up π¨: for SASL binds, the server is expected to ignore this value. so don't be shocked when it gets ghosted π»-Wβ prompt for simple authentication. use this instead of putting your password right there on the command line, because we do NOT do that π-w passwdβ use passwd as the password for simple authentication. (yes, on the command line. i said what i said.)-y passwdfileβ use the complete contents of passwdfile as the password for simple authentication. every last byte, babes.-H ldapuriβ specify the URI(s) pointing at the ldap server(s). only the protocol/host/port fields are allowed, ok? and it expects a list of URIs, separated by whitespace or commas. multiple servers, one flag, we love efficiency π-e [!]ext[=extparam]β specify general extensions. β¨-E [!]ext[=extparam]β specify whoami extensions. π¦
and just so we're clear: a!in there indicates criticality. so[!]means "you can put a!here if you want the server to truly care."
General extensions:
[!]assert=<filter> (an RFC 4515 Filter)
!authzid=<authzid> ("dn:<dn>" or "u:<user>")
[!]bauthzid (RFC 3829 authzid control)
[!]chaining[=<resolve>[/<cont>]]
[!]manageDSAit
[!]noop
ppolicy
[!]postread[=<attrs>] (a comma-separated attribute list)
[!]preread[=<attrs>] (a comma-separated attribute list)
[!]relax
sessiontracking[=<username>]
abandon,cancel,ignore (SIGINT sends abandon/cancel,
or ignores response; if critical, doesn't wait for SIGINT.
not really controls)
WhoAmI extensions:
(none)
π the whoami extensions list is literally (none). she has no extras. she's a minimalist.
-o opt[=optparam]β specify anyldap.conf(5)option, or one of these two cuties:
nettimeout=<timeout> (in seconds, or "none" or "max")
ldif_wrap=<width> (in columns, or "no" for no wrapping)
and for any other -o option you can pass here, check ldap.conf(5) for the details. iykyk π
-O security-propertiesβ specify SASL security properties. π-Iβ enable SASL Interactive mode. it always prompts. like, always always. the default behavior is to prompt only as needed, so this flag is the "i would like to be asked, thank you" setting πββοΈ-Qβ enable SASL Quiet mode. never prompt. not once. π€«-Nβ do not use reverse DNS to canonicalize the SASL host name. skip the lookup, save the drama π§-U authcidβ specify the authentication ID for SASL bind. the form of the ID depends on the actual SASL mechanism being used, so no universal answer, bestie π-R realmβ specify the realm of the authentication ID for SASL bind. same deal: the form of the realm depends on the actual SASL mechanism used. π-X authzidβ specify the requested authorization ID for SASL bind. and authzid has to be one of these two formats exactly:dn:<distinguished name>oru:<username>. those are the only options, no freelancing π«-Y mechβ specify the SASL mechanism to be used for authentication. if you don't specify it, the program will choose the best mechanism the server knows. she'll pick for you, don't worry π-Z[Z]β issue the StartTLS (Transport Layer Security) extended operation. and if you use-ZZ, the command will require the operation to be successful. so-Zis "let's try π₯Ί" and-ZZis "this is non-negotiable π₯"
π EXAMPLE π
go off, queen:
ldapwhoami -x -D "cn=Manager,dc=example,dc=com" -W
π SEE ALSO π
ldap.conf(5), ldap(3), ldap_extended_operation(3)
π AUTHOR π
The OpenLDAP Project <http://www.openldap.org/>
π ACKNOWLEDGEMENTS π
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. and for the lore nerds π€: OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release. slay, Michigan.
okay that's the whole page, you're fully caught up, no notes π
this was OpenLDAP 2.7.2, dated 2026/10/21, and this manual page is LDAPWHOAMI(1). byeeee, go ask a server who you are π¦β¨
π¦ where this page comes from
- arch rolling: openldap 2.7.2-2 Β· OLDAP-2.8
- Copyright 1998-2026 The OpenLDAP Foundation All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms