Which of the following commands is used to change user passwords in an OpenLDAP directory?
A.
setent
B.
ldpasswd
C.
olppasswd
D.
ldappasswd
E.
ldapchpw
The Answer Is:
D
This question includes an explanation.
Explanation:
The ldappasswd command is used to change user passwords in an OpenLDAP directory. It allows users to change their own passwords or administrators to change other users’ passwords. It requires the user to bind to the LDAP server with the current password and then specify the new password using various options. The ldappasswd command follows the same general syntax as the other OpenLDAP tools and supports various options to modify the password operation. The ldappasswd command is part of the OpenLDAP software package and is compliant with the LDAP Password Modify Extended Operation defined in RFC 3062. References:
How To Change Account Passwords on an OpenLDAP Server
OpenLDAP ACL to allow users to change their password