Dan White wrote:
On 10/20/13 14:27 +0200, Pol Hallen wrote:
Howdy :-)

I need create a script to set programmatically password to sasldb users

#!/bin/bash
pass=test
saslpasswd -c -u domain.org 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.

You can avoid that by *not* using /bin/echo. If you leave it unqualified you'll get the shell builtin command, and nothing will show up in the process list.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to