2 20.9. Peer Authentication #
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.
9 The following configuration options are supported for peer:
12 Allows for mapping between system and database user names. See
13 Section 20.2 for details.
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.