문제

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?

The Only option about password is this:

-p Pipe mode - saslpasswd2 will neither prompt for the password nor verify that it was entered correctly. This is the default when standard input is not a terminal.

도움이 되었습니까?

해결책

echo test | saslpasswd -p -c -u domain.org user0
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top