Doc: enhance client authentication chapter.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 17 Jan 2025 05:22:05 +0000 (14:22 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 17 Jan 2025 05:22:05 +0000 (14:22 +0900)
Add intro about pool_passwd. Previously there was only description on
pool_hba.conf in the overview page. A general guide to pool_passwd
will help users to understand this chapter.

doc.ja/src/sgml/client-auth.sgml
doc/src/sgml/client-auth.sgml

index ab5bde966cdbb05e1d12e173203e0ab0e5a4d0c1..996cc9f07d3fa6bfde1021f93390f9492904cbd8 100644 (file)
   ใ“ใฎใŸใ‚ใ€ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใƒ›ใ‚นใƒˆใซๅŸบใฅใ่ช่จผใฎใŸใ‚ใ€<productname>Pgpool-II</productname>ใฏ<literal>pg_hba</literal>ใจๅŒๆง˜ใซใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆๆŽฅ็ถšใฎ่ช่จผๅ‡ฆ็†ใ‚’่กŒใ†<literal>pool_hba</literal>ใฎใƒกใ‚ซใƒ‹ใ‚บใƒ ใ‚’ๆŒใฃใฆใ„ใพใ™ใ€‚
  </para>
 
+ <para>
+  ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใŒ<productname>Pgpool-II</productname>ใซๆŽฅ็ถšใ™ใ‚‹้š›ใฎ่ช่จผ็”จใฎใƒ‘ใ‚นใƒฏใƒผใƒ‰ใ‚’็ฎก็†ใ™ใ‚‹ใฎใŒ<filename>pool_passwd</filename>ใƒ•ใ‚กใ‚คใƒซใงใ™๏ผˆ่ฉณ็ดฐใฏ<xref linkend="guc-pool-passwd">ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚)<filename>pool_passwd</filename>ใซ็™ป้Œฒใ•ใ‚Œใ‚‹ใƒ‘ใ‚นใƒฏใƒผใƒ‰ใฏใ€<productname>PostgreSQL</productname>ใซ็™ป้Œฒใ•ใ‚Œใ‚‹ใƒ‘ใ‚นใƒฏใƒผใƒ‰ใจไธ€่‡ดใ—ใฆใ„ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚<productname>PostgreSQL</productname>ใซ็™ป้Œฒใ•ใ‚ŒใŸใƒ‘ใ‚นใƒฏใƒผใƒ‰ใ‚’ๅค‰ๆ›ดใ—ใฆใ‚‚ใ€<filename>pool_passwd</filename>ใฎใƒ‘ใ‚นใƒฏใƒผใƒ‰ใฏ่‡ชๅ‹•ๅค‰ๆ›ดใ•ใ‚Œใชใ„ใ“ใจใซๆณจๆ„ใ—ใฆใใ ใ•ใ„ใ€‚<link linkend="auth-scram">scram-shar-256่ช่จผ</link>ใจ<link linkend="auth-md5">MD5่ช่จผ</link>ใงใฏใ€<filename>pool_passwd</filename>ใซใƒฆใƒผใ‚ถๅใจใƒ‘ใ‚นใƒฏใƒผใƒ‰ใ‚’็™ป้Œฒใ™ใ‚‹ใฎใŒๅฟ…้ ˆใงใ™ใŒใ€<link linkend="auth-password">clear text password่ช่จผ</link>ใงใฏๅฟ…้ ˆใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚ใ“ใฎใŸใ‚ใ€<filename>pool_passwd</filename>ใฎใƒ‘ใ‚นใƒฏใƒผใƒ‰ใฎไฟๅฎˆใ‚’้ฟใ‘ใŸใ„ๅ ดๅˆใซใฏใ€<link linkend="auth-password">clear text password่ช่จผ</link>ใฎๆคœ่จŽใ‚’ใŠๅ‹งใ‚ใ—ใพใ™ใ€‚
+ </para>
+
  <sect1 id="auth-pool-hba-conf">
   <!--
   <title>The <filename>pool_hba.conf</filename> File</title>
index 6441be0835b5c0e113bfffc10b411769f3be7484..5096c8718d781062a55f2782e59f32864ea43b66 100644 (file)
   <literal>pool_hba</literal> mechanism similar to the <literal>pg_hba</literal> mechanism for
   authenticating the incoming client connections.
  </para>
+ <para>
+  The <filename>pool_passwd</filename> file manages passwords for
+  authentication used when clients connect
+  to <productname>Pgpool-II</productname>
+  (see <xref linkend="guc-pool-passwd"> for more details). The
+  passwords registered on <filename>pool_passwd</filename> must match
+  with the passwords registered
+  on <productname>PostgreSQL</productname>. Note that passwords
+  changed on <productname>PostgreSQL</productname> are not
+  automatically sync to the passwords
+  on <filename>pool_passwd</filename>. <link linkend="auth-scram">scram-shar-256
+  authentication</link> and <link linkend="auth-md5">MD5
+  authentication</link> require that the user name and the password
+  have been already registered on <filename>pool_passwd</filename>,
+  while <link linkend="auth-password">clear text password
+  authentication</link> does not require that. Therefore, if you want
+  to avoid maintaining the <filename>pool_passwd</filename>, it would
+  be worth to check <link linkend="auth-password">clear text password
+  authentication</link>.
+ </para>
 
  <sect1 id="auth-pool-hba-conf">
   <title>The <filename>pool_hba.conf</filename> File</title>