postgresql – pgpool-II身份验证失败
发布时间:2020-12-13 18:07:15 所属栏目:百科 来源:网络整理
导读:我正在使用pgpool-II 3.2.1中的两个PostgreSQL 9.1配置为主热备用. 当尝试从PGAdmin进行身份验证时,我得到: Error connecting to the server: FATAL: password authentication failed for user "postgres" 在pgpool日志中,我看到: 2012-11-01 14:40:13 LOG
我正在使用pgpool-II 3.2.1中的两个PostgreSQL 9.1配置为主热备用.
当尝试从PGAdmin进行身份验证时,我得到: Error connecting to the server: FATAL: password authentication failed for user "postgres" 在pgpool日志中,我看到: 2012-11-01 14:40:13 LOG: pid 3023: connection received: host=89.xxx.xxx.xxx port=57150 2012-11-01 14:40:13 DEBUG: pid 3023: Protocol Major: 1234 Minor: 5679 database: user: 2012-11-01 14:40:13 DEBUG: pid 3023: SSLRequest from client 2012-11-01 14:40:13 DEBUG: pid 3023: pool_ssl: SSL requested but SSL support is not available 2012-11-01 14:40:13 DEBUG: pid 3023: read_startup_packet: application_name: pgAdmin III - Browser 2012-11-01 14:40:13 DEBUG: pid 3023: Protocol Major: 3 Minor: 0 database: postgres user: postgres 2012-11-01 14:40:13 DEBUG: pid 3023: new_connection: connecting 0 backend 2012-11-01 14:40:13 DEBUG: pid 3023: new_connection: connecting 1 backend 2012-11-01 14:40:13 DEBUG: pid 3023: pool_ssl: SSL requested but SSL support is not available 2012-11-01 14:40:13 DEBUG: pid 3023: pool_ssl: SSL requested but SSL support is not available 2012-11-01 14:40:13 DEBUG: pid 3023: pool_read_message_length: slot: 0 length: 12 2012-11-01 14:40:13 DEBUG: pid 3023: pool_read_message_length: slot: 1 length: 12 2012-11-01 14:40:13 DEBUG: pid 3023: pool_do_auth: auth kind:5 2012-11-01 14:40:13 DEBUG: pid 3023: trying md5 authentication 2012-11-01 14:40:13 DEBUG: pid 3023: password does not match: frontend:md5286c9c7c4ac8a365170e0f448c99ad48 pgpool:md5cf0e9615c13af6243edfd11d2461d12e 2012-11-01 14:40:13 DEBUG: pid 3023: do_md5failed in slot 0 真正奇怪的是,日志中的md5哈希值会随着每个请求而变化,所以与我在/usr/local/etc / pool_passwd和/usr/local/etc/pcp.conf中设置的哈希值相比,它实际上没有意义. 你能帮我看一下配置问题吗?
这取决于你如何使用“pg_md5”…如果你不包括用户名,那么它将生成错误的MD5,因为毫无疑问它在盐中使用:
root:/usr/local/etc# pg_md5 password1 7c6a180b36896a0a8c02787eeafb0e4c 但是如果您使用正确的语法,那么您将获得自动放入pool_password文件的正确条目: root:/usr/local/etc# pg_md5 -m -u greg password1 root@1:/usr/local/etc# grep greg: pool_passwd greg:md53c5b45b54c89f8af9074a2ad371e2c12 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 依赖注入 – AutoMapper TypeConverter自定义构造函数
- TableView 优化之数据模型优化
- c# – 将Linq表达式“obj => obj.Prop”转换为“parent =>
- ruby-on-rails – devise_invitable:邀请后确认
- ruby – 在rails_admin中,如何关闭sub-foms中的“添加新”和
- XML Schema,用于验证NMTOKENS属性列表中的每个值
- c# – 从MVC Controller返回一个字符串到jQuery
- Grails如何处理插件依赖项
- C#读取Excel并转化成XML的方法
- ruby-on-rails – 如何使用camelcased密钥名称从Rails返回J