]> begriffs open source - ai-pg/blob - full-docs/txt/auth-peer.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / auth-peer.txt
1
2 20.9. Peer Authentication #
3
4    The peer authentication method works by obtaining the client's
5    operating system user name from the kernel and using it as the allowed
6    database user name (with optional user name mapping). This method is
7    only supported on local connections.
8
9    The following configuration options are supported for peer:
10
11    map
12           Allows for mapping between system and database user names. See
13           Section 20.2 for details.
14
15    Peer authentication is only available on operating systems providing
16    the getpeereid() function, the SO_PEERCRED socket parameter, or similar
17    mechanisms. Currently that includes Linux, most flavors of BSD
18    including macOS, and Solaris.