/usr/sbin/slappasswd
Slappasswd is used to generate an userPassword value suitable for use with ldapmodify, slapd.conf rootpw configuration directive or the slapd-config olcRootPW configuration directive.