1,
mkdir -pm 755 /opt/cloudera/security/saml/
cd /opt/cloudera/security/saml/
2,
访问cas 地址 http://192.168.176.17:8080/cas/idp/metadata
获取cs metadata,物理目录下会生成

3,将 2生成的文件copy到hue所在的机器上/opt/cloudera/security/saml。并将crt转换为pem
openssl x509 -in idp-encryption.crt -out idp-encryption.pem -outform PEM

4,安装 python 插件 参考:https://www.cloudera.com/documentation/enterprise/5-13-x/topics/hue_sec_saml_auth.html
yum install xmlsec1 xmlsec1-openssl
5,配置hue

6,6,访问 http://tpc.ds.hive1.com:8888/saml2/metadata/ 生成的saml 客户端的xml。保存为xml文件复制到 cas服务器中
网友评论