saslpasswd2 programmatically password

Dan White dwhite at
Mon Oct 21 10:12:59 EDT 2013

On 10/20/13 14:27 +0200, Pol Hallen wrote:
>Howdy :-)
>I need create a script to set programmatically password to sasldb users
>saslpasswd -c -u user0
>how pass variable $pass to this script?

/bin/echo "$password" | /usr/sbin/saslpasswd2 -a $service_name $username

This is inappropriate for a multi-user system since the password will show
up in a process list.

Dan White

More information about the Cyrus-devel mailing list