LDAPPASSWD(1)
π NAME π
ldappasswd β the one and only girlboss whose whole job is changing the password of an LDAP entry. That's it. That's the assignment. And in case you were wondering which manual she lives in, it's the General Commands Manual (hi, LDAPPASSWD(1), we stan a section 1 icon π«Ά).
β¨ SYNOPSIS β¨
ldappasswd [-V[V]] [-d debuglevel] [-n] [-v] [-A] [-a oldPasswd]
[-t oldpasswdfile] [-S] [-s newPasswd] [-T newpasswdfile] [-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]] [user]
πΈ DESCRIPTION πΈ
okay so bestie, ldappasswd is the tool that sets the password of an LDAP user. No cap. And the way she does it is chef's kiss β she uses the LDAPv3 Password Modify (RFC 3062) extended operation π₯.
ldappasswd sets the password of associated with the user [or an optionally specified user]. Iconic phrasing, we respect it. And here's the tea: if you don't specify the new password on the command line and the user doesn't enable prompting, then the server gets asked to generate a password for the user. The server is doing the homework. Slay π
.
π¨ okay real talk for one sec:ldappasswdis neither designed nor intended to be a replacement forpasswd(1), and it should not be installed as such. Do not do the thing. Do not make her something she's not. Periodt π
π OPTIONS π
-V[V]β print version info. If you hit it with-VV, then it's only the version information, nothing else. Just vibes, just facts.-d debuglevelβ set the LDAP debugging level to debuglevel. β οΈ heads up though:ldappasswdmust be compiled withLDAP_DEBUGdefined for this option to do literally anything. If it wasn't, this flag is giving decorative π.-nβ do not set password. (Can be useful when used in conjunction with-vor-d.) A little spectral girl, haunting your output, touching nothing.-vβ increase the verbosity of output. Can be specified multiple times. Spam it, she loves to talk π¬.-Aβ prompt for the old password. Use this instead of putting the password on the command line.-a oldPasswdβ set the old password to oldPasswd.-t oldPasswdFileβ set the old password to the contents of oldPasswdFile.-Sβ prompt for the new password. Use this instead of putting the password on the command line.-s newPasswdβ set the new password to newPasswd.-T newPasswdFileβ set the new password to the contents of newPasswdFile.-xβ use simple authentication instead of SASL. Old-school, but make it fashion.-D binddnβ use the Distinguished Name binddn to bind to the LDAP directory. For SASL binds though, the server is expected to ignore this value. She said "thanks bestie, I'll take it from here" π.-Wβ prompt for the bind password. Use this instead of putting the password on the command line.-w passwdβ use passwd as the password to bind with.-y passwdfileβ use the complete contents of passwdfile as the password for simple authentication.-H ldapuriβ specify URI(s) pointing at the ldap server(s). Only the protocol/host/port fields are allowed. A list of URI, separated by whitespace or commas, is expected.-e [!]ext[=extparam]β specify general extensions. (Her sister-Eis right below π)-E [!]ext[=extparam]β specify passwd modify extensions. General extensions go to-e, passwd modify extensions go to-E. A!indicates criticality. Full menu below, babes:
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)
Passwd Modify extensions:
(none)
(yes, the passwd modify extensions list is literally (none). she's lowkey empty inside. still iconic.)
-o opt[=optparam]]β specify anyldap.conf(5)option, or one of these two extra specials:
nettimeout=<timeout> (in seconds, or "none" or "max")
ldif_wrap=<width> (in columns, or "no" for no wrapping)
-O security-propertiesβ specify SASL security properties. Get specific. Get safe. π-Iβ enable SASL Interactive mode. Always prompt. The default is to prompt only as needed, so this is her clingy setting. She wants to talk to you every time.-Qβ enable SASL Quiet mode. Never prompt. The polar opposite of-I. She's giving mysterious π¦.-Nβ do not use reverse DNS to canonicalize the SASL host name. Skip the whole lookup arc.-U authcidβ specify the authentication ID for a SASL bind. The form of the ID depends on the actual SASL mechanism used. So likeβ¦ read the room (and your mechanism) first.-R realmβ specify the realm of the authentication ID for a SASL bind. Again, the form depends on the actual SASL mechanism used. No universal format bestie, sorry π.-X authzidβ specify the requested authorization ID for a SASL bind. authzid must be one of the following formats:dn:<distinguished name>oru:<username>. Those are the only two fits she'll wear.-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. Let her pick, she has taste π₯.-Z[Z]β issue the StartTLS (Transport Layer Security) extended operation. And if you use-ZZ, the command will require the operation to be successful.-Zis "would be nice",-ZZis "if this doesn't work we're leaving" π .
And last but never least: [user] β the optional user argument. If you skip it, she works on whoever you're bound as. Main character energy only.
π¦ SEE ALSO π¦
ldap_sasl_bind(3), ldap_extended_operation(3), ldap_start_tls_s(3)
Go read those too. Iykyk. π
π AUTHOR π
The OpenLDAP Project <http://www.openldap.org/>
π ACKNOWLEDGEMENTS π
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release. History! Lore! The ancestry! πΈ
and that's the whole page, bestie π this was OpenLDAP 2.7.2, dated 2026/10/21, from the LDAPPASSWD(1) manual β now go change a password responsibly, protect your creds, and never put the password directly on the command line unless you truly have to π«Άβ¨
π¦ 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