slappasswd

From RaySoft

slappasswd is used to generate an userPassword value suitable for use with ldapmodify or slapd.conf rootpw configuration directive.[1]

Documentation

Syntax

slappasswd [PARAMETER ...]

Parameters

-h SCHEME
If -h is specified, one of the following RFC 2307 schemes may be specified: {CRYPT}, {MD5}, {SMD5}, {SSHA}, and {SHA}. The default is {SSHA}.
  • {SHA} and {SSHA} use the SHA-1 algorithm (FIPS 160-1), the latter with a seed.
  • {MD5} and {SMD5} use the MD5 algorithm (RFC 1321), the latter with a seed.
  • {CRYPT} uses the crypt.
  • {CLEARTEXT} indicates that the new password should be added to userPassword as clear text.
NOTE:
The scheme names may need to be protected, due to { and }, from expansion by the user's command interpreter.

References

  1. man 8 'slappasswd'