- 论坛徽章:
- 0
|
写给所有OpenLDAP不能正常启动的人
Use "slappasswd" to find out the encypted format of your new password, see "man slappasswd" for more details.
# slappasswd
New password: secret
Re-enter new password: secret
{SSHA}/BoxeE3UI+Bwtpve7Ku3rGX3Mk0JpTas
Copy the output and paste into slapd.conf's "rootpw" directive, after slapd is restarted, new "rootpw" will be the password for "cn=Manager,dc=test,dc=com".
"ldappasswd" is used to change individual user password, use the "-W" to prompt for old password entry and "-S" to prompt for new password entry, below is an example.
$ ldappasswd -x -D "uid=testuser,ou=People,dc=test,dc=com" -W -S
New password:
Re-enter new password:
Enter LDAP Password:
Result: Success (0)
Note that NEW password is entered first, then the existing OLD password which is also the bindpw of binddn (-D ...).
If you use "passwd", usually the order is to enter existing OLD password first then NEW password.
Gary |
|