Hi,
Don’t know if this is still working (or if it was working at all)
But some time ago I did the following to get what you want to do (if I
understand your question correctly)

{noformat}
sqlfile=$(mktemp)

# generate guacamole mysql init
echo -en "generate guacamole mysql init: "
( docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql >
$sqlfile ) >/dev/null 2>&1 && ok || failed

# set password “password” for guacadmin (echo -n "password" | sha256sum)
# setting random password
pw=$( pwgen | sha256sum | awk {'print $1'} )
echo -en "changing guacadmin pass: "
( sed -i
"s/CA458A7D494E3BE824F5E1E175A1556C0F8EEF2C2D7DF3633BEC4A29C4411960/$pw/g"
$sqlfile && sed -i
"s/x'FE24ADC5E11E2B25288D1704ABE67A79E342ECC26064CE69C5B3177795A82264'/NULL/g"
$sqlfile ) && ok || failed
{noformat}

This is a snippet of an older script and won’t work “out of the box”

Iirc this “solution” was far from ideal, because it removes the salt from
the password (or something like that...)
So I guess this is nothing you want to use in any production environment.

But maybe it’s helping you to find a better solution.

Greetings,
Sebastian 




--
Sent from: 
http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

Reply via email to