{"Entry":{"collection":"auth","key":"bsd","name":"bsd","aliases":[],"metadata":{"aliases":[],"category":"Authentication and access control","content_hash":"024e486e876878a10b4d506d131feaa2109860f51d79e3ea3b934094bde92292","derived_content_hash":"ea4837032f39bee61bd19084f92ae6f4192c0c9313f81e8b26ae3be6becf1f30","imported_at":"2026-09-30T00:40:33.257107+08:00","name":"bsd","name_zh":"","slug":"bsd","summary":"Authenticate using the BSD Authentication service provided by the operating system. See Section 20.13 for details."}},"Definition":{"Collection":"auth","Key":"bsd","SourceDatabase":"center","Version":"18","SourceTable":"authentication_method","SourceKey":"bsd","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","Facts":{"aliases":[],"attributes":{"configuration":"pg_hba.conf","inventory":"User-visible source authentication method","method":"bsd"},"comparison_data":{"documented_option_names":[],"method":"bsd"},"comparison_hash":"9fa1c920bb9b1464b8402056f0f4e9db56a7949baf852b69146b76b1432bc19b","description":["Authenticate using the BSD Authentication service provided by the operating system. See Section 20.14 for details."],"description_zh":"认证方法 bsd。","description_zh_html":"\u003cp\u003e认证方法 bsd。\u003c/p\u003e\u003cdl\u003e\u003cdt\u003e索引访问方法\u003c/dt\u003e\u003cdd\u003e\u003ccode\u003ebsd\u003c/code\u003e\u003c/dd\u003e\u003cdt\u003e配置\u003c/dt\u003e\u003cdd\u003e\u003ccode\u003epg_hba.conf\u003c/code\u003e\u003c/dd\u003e\u003c/dl\u003e\u003ch3\u003e同版本中文手册节选\u003c/h3\u003e\u003cp\u003e\n    这种认证方法操作起来类似于 \u003ccode class=\"literal\"\u003epassword\u003c/code\u003e，不过它使用 BSD 认证来验证密码。BSD 认证只被用来验证用户名/密码对。因此，在 BSD 认证可以被用于认证之前，用户的角色必须已经存在于数据库中。BSD 认证框架当前只在 OpenBSD 上可用。\n   \u003c/p\u003e\u003cp\u003e\n\u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e 中的 BSD 认证使用 \u003ccode class=\"literal\"\u003eauth-postgresql\u003c/code\u003e 登录类型，如果 \u003ccode class=\"filename\"\u003elogin.conf\u003c/code\u003e 中定义了 \u003ccode class=\"literal\"\u003epostgresql\u003c/code\u003e 登录分类，就会用它来认证。默认情况下这种登录分类不存在，\u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e 将使用默认的登录分类。\n   \u003c/p\u003e\u003cp\u003e\u003ca href=\"/zh/docs/18/auth-bsd.html\"\u003e查看完整中文手册与上下文\u003c/a\u003e。\u003c/p\u003e","facts":[{"label":"Method","value":"bsd"},{"label":"Configuration","value":"pg_hba.conf"},{"label":"Inventory","value":"User-visible source authentication method"}],"facts_zh":[{"label":"方法","value":"bsd"},{"label":"配置","value":"pg_hba.conf"},{"label":"清单","value":"用户可见的源码认证方法"}],"manual_html":"\u003cdiv class=\"sect1\" id=\"AUTH-BSD\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\n\u003ch2 class=\"title\"\u003e20.14. BSD Authentication \u003c/h2\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cp\u003eThis authentication method operates similarly to \u003ccode class=\"literal\"\u003epassword\u003c/code\u003e except that it uses BSD Authentication to verify the password. BSD Authentication is used only to validate user name/password pairs. Therefore the user's role must already exist in the database before BSD Authentication can be used for authentication. The BSD Authentication framework is currently only available on OpenBSD.\u003c/p\u003e\n\u003cp\u003eBSD Authentication in \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e uses the \u003ccode class=\"literal\"\u003eauth-postgresql\u003c/code\u003e login type and authenticates with the \u003ccode class=\"literal\"\u003epostgresql\u003c/code\u003e login class if that's defined in \u003ccode class=\"filename\"\u003elogin.conf\u003c/code\u003e. By default that login class does not exist, and \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e will use the default login class.\u003c/p\u003e\n\u003cdiv class=\"note\"\u003e\n\u003ch3 class=\"title\"\u003eNote\u003c/h3\u003e\n\u003cp\u003eTo use BSD Authentication, the PostgreSQL user account (that is, the operating system user running the server) must first be added to the \u003ccode class=\"literal\"\u003eauth\u003c/code\u003e group. The \u003ccode class=\"literal\"\u003eauth\u003c/code\u003e group exists by default on OpenBSD systems.\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e","manual_path":"/docs/18/auth-bsd.html","related":[],"release":{"catalog_fingerprint":"65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502","channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sections":[],"sections_zh":[],"signature":"","sources":[{"label":"Matching PostgreSQL source archive","sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"},{"label":"PostgreSQL 18 English manual","path":"auth-bsd.html","sha256":"382b06ab28f5a2fe92981dde9e8b3dc145058d9cfff32dc6c57336d66605205b","url":"/docs/18/auth-bsd.html"},{"label":"PostgreSQL 18 English manual","path":"auth-pg-hba-conf.html","sha256":"6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9","url":"/docs/18/auth-pg-hba-conf.html"}],"tables":[],"tables_zh":[],"zh_from":{"authored_translation":"source-derived-structured-summary","body_sha256":"634e8095f9f03e20565ad1efb11d1d9da92cddb0497c422c865637162c4c00bb","kind":"same-version-chinese-manual-with-source-derived-structured-summary","manual":{"anchor":"","build_id":107,"extraction":"concept-introduction","fragment_sha256":"e5317db711f815dc075899ab32f3ca409ba27b2a789ab759d6738bcbec207e1e","locale":"zh-Hans","page_key":"auth-bsd.html","source_hash":"3e92109d02ca40067a47a276d3efd4fdfc2ef6c5c1a74888a4e7a6ce2a6d942b","source_revision":"unknown:rendered-translation-baseline","translated_from_revision":null,"translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","url":"/zh/docs/18/auth-bsd.html","version":"18"},"runtime_rerun":false,"source_facts_revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"}},"ManualEvidence":{"manual_path":"/docs/18/auth-bsd.html","release":{"catalog_fingerprint":"65c93d6048ef30e61023a84f9680fa6a92b1c383b7eb226741170077eb078502","channel":"stable","label":"18.6","major":"18","ref":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2","revision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","source_sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f"},"sources":[{"label":"Matching PostgreSQL source archive","sha256":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","url":"https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2"},{"label":"PostgreSQL 18 English manual","path":"auth-bsd.html","sha256":"382b06ab28f5a2fe92981dde9e8b3dc145058d9cfff32dc6c57336d66605205b","url":"/docs/18/auth-bsd.html"},{"label":"PostgreSQL 18 English manual","path":"auth-pg-hba-conf.html","sha256":"6340d4abea2e0a3482afc31bcd1599a0fa10dc28a6f1e05d79ba831e2dd0b4c9","url":"/docs/18/auth-pg-hba-conf.html"}]},"MeasuredEvidence":{}},"Text":{"Collection":"auth","Key":"bsd","SourceDatabase":"center","Version":"18","Locale":"en","Title":"bsd","Summary":"Authenticate using the BSD Authentication service provided by the operating system. See Section 20.14 for details.","BodyHTML":"\u003cdiv id=\"AUTH-BSD\"\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\n\u003ch2\u003e20.14. BSD Authentication \u003c/h2\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cp\u003eThis authentication method operates similarly to \u003ccode\u003epassword\u003c/code\u003e except that it uses BSD Authentication to verify the password. BSD Authentication is used only to validate user name/password pairs. Therefore the user\u0026#39;s role must already exist in the database before BSD Authentication can be used for authentication. The BSD Authentication framework is currently only available on OpenBSD.\u003c/p\u003e\n\u003cp\u003eBSD Authentication in \u003cspan\u003ePostgreSQL\u003c/span\u003e uses the \u003ccode\u003eauth-postgresql\u003c/code\u003e login type and authenticates with the \u003ccode\u003epostgresql\u003c/code\u003e login class if that\u0026#39;s defined in \u003ccode\u003elogin.conf\u003c/code\u003e. By default that login class does not exist, and \u003cspan\u003ePostgreSQL\u003c/span\u003e will use the default login class.\u003c/p\u003e\n\u003cdiv\u003e\n\u003ch3\u003eNote\u003c/h3\u003e\n\u003cp\u003eTo use BSD Authentication, the PostgreSQL user account (that is, the operating system user running the server) must first be added to the \u003ccode\u003eauth\u003c/code\u003e group. The \u003ccode\u003eauth\u003c/code\u003e group exists by default on OpenBSD systems.\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e","SourceRevision":"555610c24d53e4316da5b7d3fc25c279d96856d5e0e23ee308c328c5fa881d9f","ContentHash":"6c968dcdb59d5acac670f2a380d224089d65f6fbb2a4963884017033bb5af700","Payload":{"description":["Authenticate using the BSD Authentication service provided by the operating system. See Section 20.14 for details."],"manual_html":"\u003cdiv class=\"sect1\" id=\"AUTH-BSD\"\u003e\n\u003cdiv class=\"titlepage\"\u003e\n\u003cdiv\u003e\n\u003cdiv\u003e\n\u003ch2 class=\"title\"\u003e20.14. BSD Authentication \u003c/h2\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\u003cp\u003eThis authentication method operates similarly to \u003ccode class=\"literal\"\u003epassword\u003c/code\u003e except that it uses BSD Authentication to verify the password. BSD Authentication is used only to validate user name/password pairs. Therefore the user's role must already exist in the database before BSD Authentication can be used for authentication. The BSD Authentication framework is currently only available on OpenBSD.\u003c/p\u003e\n\u003cp\u003eBSD Authentication in \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e uses the \u003ccode class=\"literal\"\u003eauth-postgresql\u003c/code\u003e login type and authenticates with the \u003ccode class=\"literal\"\u003epostgresql\u003c/code\u003e login class if that's defined in \u003ccode class=\"filename\"\u003elogin.conf\u003c/code\u003e. By default that login class does not exist, and \u003cspan class=\"productname\"\u003ePostgreSQL\u003c/span\u003e will use the default login class.\u003c/p\u003e\n\u003cdiv class=\"note\"\u003e\n\u003ch3 class=\"title\"\u003eNote\u003c/h3\u003e\n\u003cp\u003eTo use BSD Authentication, the PostgreSQL user account (that is, the operating system user running the server) must first be added to the \u003ccode class=\"literal\"\u003eauth\u003c/code\u003e group. The \u003ccode class=\"literal\"\u003eauth\u003c/code\u003e group exists by default on OpenBSD systems.\u003c/p\u003e\n\u003c/div\u003e\n\u003c/div\u003e","related":[],"sections":[],"tables":[]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
