hue配置ldap密码 ,不用明文

[desktop]

auth_username=yarn
auth_password_script=/opt/hue_password.sh ldap_password

vi /opt/hue_password.sh

#!/bin/bash

SERVICE=$1

if [[ ${SERVICE} == "ldap_password" ]]
         then
         echo "password"
fi

if [[ ${SERVICE} == "ssl_password" ]]
         then
         echo "password"
fi

if [[ ${SERVICE} == "bind_password" ]]
         then
         echo "Password1"
fi

if [[ ${SERVICE} == "database_password" ]]
         then
         echo "password"
fi


chown hue:hue hue_password.sh

chmod 700 hue_password.sh


您可以选择一种方式赞助本站

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

图片 表情