[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Alternative to slappasswd

On Fri, 12 Mar 2004, David Smith wrote:

> I am looking for an alternative to slappasswd that:
> 1. Supports reading clear-text passwords from stdin.
> 2. Is common or easily obtainable on *nix machines.
> 3. Supports at least MD5, CRYPT, SMD5, SHA, SHA1.
> Before you ask: No, slappasswd does not support reading from stdin. It 
> reads from the tty.
> Any suggestions?

slappasswd -s <password>

Maybe not stdin ... but easy enough to script.

$ /usr/sbin/slappasswd -s asdasd
$ /usr/sbin/slappasswd -s asdasd -h "{MD5}"