Trino对接ldap

恩慈2年前技术文章1036


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

 

 


相关文章

ES部署以及扩容

ES部署以及扩容

单节点RPM包方式部署1、下载RPM包官网下载地址:Download Elasticsearch | Elastic默认下载的为最新版本,如果想要下载历史版本,点击此处查看历史版本此处安装ES7.X...

GTID 模式 - 通过跳过事务解决主从故障

一、前言很多场景下我们需要跳过一个事务来修复主从关系,例如主从事务不一致,或者对无主键表更新,导致较大延迟,操作过程在此记录。二、操作流程1. 获取最后一个 GTID 操作在 GTID 模式下,如果需...

Ansible自动化运维平台部署

一、部署前准备部署机器准备计算机名解析关闭防火墙、selinux时间同步软件包获得ssh免密登陆约定事项:所有服务器全部采用静态ip主机名称IP地址manage01192.168.98.200/24n...

Kubernetes原理分析--Kube-controller list&watch原理解析

Kubernetes原理分析--Kube-controller list&watch原理解析

1.list&watch流程:这里有三个 List-Watch,分别是 Controller Manager(运行在 Master),Scheduler(运行在Master),kubelet(...

Kafka日志管理

Kafka在运行时会生成大量的日志记录信息,包含了运行状态、错误信息、性能指标等。这些日志文件会占用很大的磁盘空间,过多的日志文件也会影响Kafka的性能,因此需要采取一些日志管理措施来清理无用的日志...

使用clickhouse-copier迁移数据

说明clickhouse-copier是clickhouse官方提供的一个数据迁移工具。支持将clickhouse表从一个集群迁移到另外一个集群。使用clickhouse-copier有一些限制条件:...

发表评论    

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