PostgreSQL: pg_cmd.conf host-based client Verification

Source: Internet
Author: User
Tags postgresql client

The method, principle, and form of postgresql client verification are similar to the *** host *** of Linux :-

PostgreSQL will find the first record that matches the connection type for verification. If verification fails, verify the next or special action. Everyone is equal!

After the configuration file is modified: You can use pg_ctl reload to reload and make it take effect!

 

The configuration file for pg_cmd.conf is relatively simple. One record is a row and seven specific forms are commonly used as a host.

Host database user IP mask mothed [method option]-- Database and user can be separated by commas (,). @ filename can be used to include separate database and user lists.

  • Linkage connection type: Unix sock, TCP/IP
  • Two types of TCP/IP configuration: IP mask, IP/CIDR-ADDRESS (shield code)
  • Two types of TCP/IP Length Standards: IPv4 and IPv6
  • Two types of TCP/IP encryption: SSL and nossl

 

 

Multiple verification methods

  • Trust
  • Reject
  • MD5
  • Password
  • ....

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.