Trino对接ldap

恩慈4个月前技术文章124


Tls 证书生成

生成的证书分发到每个节点

 

#ip和主机名为**coordinator**的ip和主机名及对应的vip

keytool -genkeypair -validity 36500 -ext SAN=IP:xxx.xxx.xxx.221,xxx.xxx.xxx.221 DNS:xxx.xxx.xxx3,xxx.xxx.xx3 -alias trino -keypass admin@123 -storepass admin@123 -keyalg RSA -dname CN=TRINO-HOST-VIP,OU=,O=,L=,ST=,C= -keystore trino.jks

 

keytool -export -rfc -keystore trino.jks --alias trino -file trino.pem

 

 

添加TRINO-HOST-VIP 172.16.38.14 到/etc/hosts

openldap对接

1.1. 配置config.properties文件

vim etc/config.properties

 

内容如下:

# 新增对接ldap配置

http-server.https.enabled=true

http-server.https.port=8443

http-server.https.keystore.key=admin@123

http-server.https.keystore.path=/opt/trino/etc/trino.jks

internal-communication.shared-secret=abc123

internal-communication.https.required=true

http-server.https.secure-random-algorithm=SHA1PRNG

http-server.authentication.allow-insecure-over-http=true

http-server.authentication.type=PASSWORD

 

1.2. 配置password-authenticator.properties文件

vim etc/password-authenticator.properties

 

内容如下:

password-authenticator.name=ldap

ldap.url=ldap://xxx.xxx.xxx.xxx:389

ldap.user-base-dn=ou=People,dc=dfcv,dc=com

ldap.user-bind-pattern=uid=${USER},ou=People,dc=dfcv,dc=com

ldap.allow-insecure=true

 

 


相关文章

Keepalived 高可用解决方案

Keepalived 高可用解决方案

Keepalived 起初是为 LVS 设计的,专门用来监控集群系统中各个服务节点的状态,后来有加入 VRRP 的功能,VRRP 是 Virtual Router Redundancy protoco...

开源大数据集群部署(九)Ranger审计日志集成(solr)

开源大数据集群部署(九)Ranger审计日志集成(solr)

1、下载solr安装包并解压包tar -xzvf solr-8.11.2.gzcd solr-8.11.2执行安装脚本./bin/install_solr_service.sh /opt/solr-8...

MySQL数据库复制延迟

【问题处理记录】1.查看资源情况,通过查找慢 SQL 发现,从 3:00 开始,存在较多 update 和 delete 操作。怀疑是表结构无主键,由于 RDS 日志模式默认采取的 row 模式,导致...

MySQL运维实战之备份和恢复(8.9)xtrabackup备份指定表

备份部分表如果实例设置了参数innodb_file_per_table,xtrabackup可以备份部分表。通过--tables,--tables-file,--databases,--databas...

flink算子优化

flink算子优化

这里先看两个任务的逻辑执行图:图一:全部打散的任务执行图图二:使用slot资源共享的任务执行图图一和图二中的两个任务是同一个任务,不同点是图一将所有的算子全部打散,在代码中使用了以下逻辑:,或者就是禁...

MySQL 官方高可用方案:Innodb ReplicaSet

MySQL 官方高可用方案:Innodb ReplicaSet

说明MySQL Innodb ReplicaSet 是 MySQL 团队在 2020 年推出的一款产品,用来帮助用户快速部署和管理主从复制,在数据库层仍然使用的是主从复制技术。ReplicaSet 主...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。