Greenplum安全

目录

Greenplum安全

身份认证

pg_hba.conf配置连接类型

pg_hba.conf配置连接数据库

pg_hba.conf配置连接用户

pg_hba.conf配置连接网络地址

pg_hba.conf配置用户的认证方法


Greenplum安全

 身份认证

11、Handles the user anthentication 22、The file is located in $MASTER_DATA_DIRECTORY 33、Comments are ignored 44、File is read line by line 55、First matching line is used 66、All subsequent lines are ignored 77、Pessimistic - if no grants,then deny access 88、To be able to access to a Greenplum database from a distant host,the couple role/host has to be set in the configuration file pg_hba.conf

 pg_hba.conf配置连接类型

1Type of connection: 2local : Connection is coming in over the Unix Domain Socket 3host : Connection over the network ,encryption is optional 4hostssl : Connection over the network ,encryption is enforced 5hostnossl: Connection over the network ,no encrytion

 pg_hba.conf配置连接数据库

1Name of database: 21、Database name, or list of database names separated by comma 32、‘all’ for all databases 43、@followed by filename : file containing databases , one per line

 pg_hba.conf配置连接用户

1Name of the user: 21、Role name,or list of role names separated by comma 32、‘all’ for all roles 43、@followed by filename,file containing role names, one per line 54+role name: a group where access is granted all members of this group

 pg_hba.conf配置连接网络地址

1Network address 21、only for host ,hostssl and hostnossl(1st column) 32、Network address might be an IPv2 or IPv6 address 4 5 6CIDR-Address IP-Address + IP-Mask Comment 7192.107.2.89/32 192.107.2.89 255.255.255.255 Single network 8192.107.2.0/24 192.107.2.0 255.255.255.0 Small network 9192.107.0.0/16 192.107.0.0 255.255.0.0 Large network 100.0.0.0/0 0.0.0.0 0.0.0.0 Full network

 pg_hba.conf配置用户的认证方法

1Authentication method: 2trust : 该模式可以不用密码直接连接数据库,不安全,一般用于集群内部局域网内 3reject:该模式表示拒绝所有请求 4md5 : 该模式较常用,发送之前使用md5算法加密的密码 5password : 该模式是使用明文密码进行身份认证 6ldap : 使用LDAP服务器认证 7gss :GSSAPI和Kerberos认证用户,只对TCP/IP链接可用 8pam: 使用操作系统提供的可插入认证模块服务(PAM)认证 9redius:RADIUS服务器认证 10cert : 使用SSL客户端证书认证 11Ident: 通过获取客户端的操作系统用户名,检查是否与被访问的数据库用户名匹配

来自 https://github.com/xfg0218/greenplum--summarize/tree/master/202009/greenplum%E5%A4%87%E4%BB%BD%E5%AE%89%E5%85%A8%E4%B8%8E%E9%AB%98%E5%8F%AF%E7%94%A8

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

MySQL部分从库上面因为大量的临时表tmp_table造成慢查询

背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

KVM调整cpu和内存

一.修改kvm虚拟机的配置1、virsheditcentos7找到“memory”和“vcpu”标签,将<namecentos7</name<uuid2220a6d1a36a4fbb8523e078b3dfe795</uuid

PG cannot execute UPDATE in a read

  PGcannotexecuteUPDATEinareadonlytransaction出现这种情况时,说明SQL语句可能是运行在一个PG集群中的非master节点上。查看data/pg\_hba.conf。  SELECTpg_is_in_recovery();Thiscannotreturntrueinam

Greenplum安全 - HelloWorld