peer
Obtain the client's operating system user name from the operating system and check if it matches the requested database user name. This is only available for local connections. See Section 20.9 for details.
当前阅读 PG 18·选择有来源记录的版本
此版本暂无所选语言的定义,以下显示原始英文内容。
- Method
- peer
- Configuration
- pg_hba.conf
- Inventory
- User-visible source authentication method
- aliases
- 未知
- manual path
- /docs/18/auth-peer.html
- signature
- 未知
版本定义 PG 18
20.9. Peer Authentication
The peer authentication method works by obtaining the client's operating system user name from the kernel and using it as the allowed database user name (with optional user name mapping). This method is only supported on local connections.
The following configuration options are supported for peer:
map-
Allows for mapping between system and database user names. See Section 20.2 for details.
Peer authentication is only available on operating systems providing the getpeereid() function, the SO_PEERCRED socket parameter, or similar mechanisms. Currently that includes Linux, most flavors of BSD including macOS, and Solaris.
Documented method options and alternatives
| Option or term | Meaning |
|---|---|
| map | Allows for mapping between system and database user names. See Section 20.2 for details. |
比较版本
完整来源事实
attributes
{"configuration":"pg_hba.conf","inventory":"User-visible source authentication method","method":"peer"}来源引用
- Matching PostgreSQL source archive
- PostgreSQL 18 English manual
- PostgreSQL 18 English manual
- 固定 PostgreSQL 源码归档
定义来源
center · PostgreSQL 18 · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f
正文语言: en · 555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f