OpenLDAP Faq-O-Matic : OpenLDAP Software FAQ : Configuration : SLAPD Configuration : Passwords : Why doesn't ldapsearch provide the actual value of userPassword ? | |
ldapsearch(1) presents values of some attributes, such as userPassword,
using LDIF's base64 encoding form. For example, a userPassword value
of "secret" is presented as follows:userPassword:: c2VjcmV0One may use any base64 decoder to obtain the value. | |
The following demonstrates how to one could decode the above base64 encoded value using perl.
echo "c2VjcmV0" | perl -MMIME::Base64 -ne 'print decode_base64($_) . "\n"'Executing this command prints "secret" followed by a newline. | |
[Append to This Answer] |
Previous: | Does ldapsearch encrypt userPassword values? |
Next: | Why is my userPassword encrypted? |
|