Update 'GauntDocker.sh'

This commit is contained in:
2019-09-26 20:30:54 -04:00
parent 7d8eaf2cc9
commit 22853e3294

View File

@@ -1,5 +1,12 @@
#!/bin/bash
#ldap-hostname: gauntdc01.home.johnhgaunt.com
#ldap-port: 389
#ldap-user-base-dn: CN=Users,DC=home,DC=johnhgaunt,DC=com
#ldap-search-bind-dn: CN=Service_Guacamole,CN=Users,DC=home,DC=johnhgaunt,DC=com
#ldap-search-bind-password:
#ldap-username-attribute: sAMAccountName
# need to be root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
@@ -27,14 +34,23 @@ guacd () {
guacamole () {
# guacamole
# ask for passwords
read -e -s -p "Enter MySQL Password: " MYSQL_PASSWORD
read -e -s -p "Enter LDAP Password: " LDAP_PASSWORD
docker create \
--name guacamole \
--link guacd:guacd \
-p 8080:8080 \
-e MYSQL_HOSTNAME=gauntsql.home.johnhgaunt.com \
-e MYSQL_DATABASE=guacamole_db \
-e MYSQL_USER=guacamole_user \
-e MYSQL_PASSWORD=HjPwuT6sNieLamso \
-e MYSQL_USER=guacamole \
-e MYSQL_PASSWORD=$MYSQL_PASSWORD \
-e LDAP_HOSTNAME=gauntdc01.home.johnhgaunt.com \
-e LDAP_PORT=389 \
-e LDAP_USER_BASE_DN='CN=Users,DC=home,DC=johnhgaunt,DC=com' \
-e LDAP_SEARCH_BIND_DN='CN=Service_Guacamole,CN=Users,DC=home,DC=johnhgaunt,DC=com' \
-e LDAP_SEARCH_BIND_PASSWORD=$LDAP_PASSWORD \
-e LDAP_USERNAME_ATTRIBUTE=sAMAccountName \
guacamole/guacamole
cat << EOF >> /etc/firewalld/services/guacamole.xml