From: Yugo Nagata Date: Wed, 6 Feb 2013 11:51:37 +0000 (+0900) Subject: Add pool_passwd X-Git-Tag: V3_2_2~2 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=1a35cbd0d01cce5d7c27c2ed2338ecec4e756255;p=pgpooladmin.git Add pool_passwd --- diff --git a/common.php b/common.php index 3e3e2d1..ecf9d63 100644 --- a/common.php +++ b/common.php @@ -603,6 +603,7 @@ function paramExists($param) break; // params added in 3.0 + case 'pool_passwd': case 'master_slave_sub_mode': case 'delay_threshold': case 'log_standby_delay': diff --git a/definePgpoolConfParam.php b/definePgpoolConfParam.php index e4a7655..f567181 100644 --- a/definePgpoolConfParam.php +++ b/definePgpoolConfParam.php @@ -116,6 +116,11 @@ $key = 'enable_pool_hba'; $pgpoolConfigParam[$key]['type'] = 'B'; $pgpoolConfigParam[$key]['default'] = 'off'; +$key = 'pool_passwd'; +$pgpoolConfigParam[$key]['type'] = 'C'; +$pgpoolConfigParam[$key]['default'] = 'pool_passwd'; +$pgpoolConfigParam[$key]['regexp'] = $anyelse; + $key = 'authentication_timeout'; $pgpoolConfigParam[$key]['type'] = 'N'; $pgpoolConfigParam[$key]['default'] = 60; diff --git a/lang/en.lang.php b/lang/en.lang.php index 3ffbc8a..148ccf9 100644 --- a/lang/en.lang.php +++ b/lang/en.lang.php @@ -111,6 +111,7 @@ $message = array( 'descPcp_socket_dir' => 'The socket directory pcp could connect', 'descPcp_timeout' => 'When there is no response in this time from client, it disconnects and stop', 'descPgpool2_hostname' => 'Pgpool2 server name where running on', + 'descPool_passwd' => 'File name of pool_passwd for md5 authentication', 'descPort' => 'The port number where pgpool is running on', 'descPrint_timestamp' => 'If true, timestamp is added to each log line', 'descRecovery_user' => 'PostgreSQL user name for online recovery', diff --git a/lang/ja.lang.php b/lang/ja.lang.php index 7bd1f44..bf441ec 100644 --- a/lang/ja.lang.php +++ b/lang/ja.lang.php @@ -101,6 +101,7 @@ $message = array( 'descPcp_socket_dir' => 'pcpがコネクションを受け付けるUnix domain socketディレクトリ', 'descPcp_timeout' => 'この時間内にクライアントから応答がない場合はコネクションを切断して終了', 'descPgpool2_hostname' => 'pgpool2 が動作しているホスト名', + 'descPool_passwd' => 'md5 認証で用いる認証ファイル', 'descPing_path' => 'ping コマンドのパス', 'descPort' => 'pgpoolがコネクションを受け付けるポート番号', 'descPrint_timestamp' => 'pgpoolのログにタイムスタンプを追加', diff --git a/templates/help/en/pgconfig.tpl b/templates/help/en/pgconfig.tpl index bd9c996..8316f83 100644 --- a/templates/help/en/pgconfig.tpl +++ b/templates/help/en/pgconfig.tpl @@ -134,7 +134,7 @@ Please push the delete button at the right of the host setting when you want to Authentication -

enable_pool_hba (bool) * +

enable_pool_hba (bool)

If true, use pool_hba.conf for client authentication. @@ -142,9 +142,20 @@ Please push the delete button at the right of the host setting when you want to + + +

pool_passwd (string) * + +

+ Specify the file name of pool_passwd for md5 authentication. + Default value is "pool_passwd". "" disables to read pool_passwd. +

+ + + -

authentication_timeout (integer) * +

authentication_timeout (integer)

Specify the timeout for pgpool authentication. 0 disables the time out. Default value is 60. @@ -172,7 +183,7 @@ Please push the delete button at the right of the host setting when you want to -

ssl_key (string) +

ssl_key (string) *

The path to the private key file to use for incoming frontend connections. @@ -186,7 +197,7 @@ Please push the delete button at the right of the host setting when you want to -

ssl_cert (string) +

ssl_cert (string) *

The path to the public x509 certificate file to use for incoming @@ -201,14 +212,14 @@ Please push the delete button at the right of the host setting when you want to -

ssl_ca_cert (string) +

ssl_ca_cert (string) * -

ssl_ca_cert_dir (string) +

ssl_ca_cert_dir (string) * @@ -1595,7 +1606,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

use_watchdog (bool) +

use_watchdog (bool) *

If on, activates watchdog. Default is off.

@@ -1605,7 +1616,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

trusted_servers (string) +

trusted_servers (string) *

The list of trusted servers to check the up stream connections. @@ -1617,7 +1628,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

ping_path (string) +

ping_path (string) *

This parameter specifies a path of ping command for monitoring connection to the upper servers. Set the only path such as "/bin".

@@ -1628,7 +1639,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_interval (integer) +

wd_interval (integer) *

This parameter specifies the interval between life checks of pgpool-II in second. (A number greater than or equal to 1)

@@ -1637,7 +1648,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_life_point (string) +

wd_life_point (string) *

The times to retry a failed life check of pgpool-II. (A number greater than or equal to 1)

@@ -1645,7 +1656,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_lifecheck_query (string) +

wd_lifecheck_query (string) *

Actual query to check pgpool-II. Default is "SELECT 1".

@@ -1655,7 +1666,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

delegate_IP (string) +

delegate_IP (string) *

Specifies the virtual IP address (VIP) of pgpool-II that is connected from client servers (application servers etc.). @@ -1665,7 +1676,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

ifconfig_path (string) +

ifconfig_path (string) *

This parameter specifies a path of a command to switch the IP address. Set the only path such as "/sbin".

@@ -1674,7 +1685,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

if_up_cmd (string) +

if_up_cmd (string) *

This parameter specifies a command to bring up the virtual IP. Set the command and parameters such as "ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0". @@ -1684,7 +1695,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

if_down_cmd (string) +

if_down_cmd (string) *

This parameter specifies a command to bring down the virtual IP. Set the command and parameters such as "ifconfig eth0:0 down".

@@ -1693,7 +1704,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

arping_path (string) +

arping_path (string) *

This parameter specifies a path of a command to send an ARP request after the virtual IP is switched. Set the only path such as "/usr/sbin".

@@ -1702,7 +1713,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

arping_cmd (string) +

arping_cmd (string) *

This parameter specifies a command to send an ARP request after the virtual IP is switched. Set the command and parameters such as "arping -U $_IP_$ -w 1". @@ -1714,7 +1725,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_hostname (string) +

wd_hostname (string) *

Specifies the hostname or IP address for mutual monitoring of watchdog processes.

@@ -1722,7 +1733,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_port (integer) +

wd_port (integer) *

Specifies the port number for mutual monitoring of watchdog processes.

diff --git a/templates/help/ja/pgconfig.tpl b/templates/help/ja/pgconfig.tpl index fb83fc8..29b4a00 100644 --- a/templates/help/ja/pgconfig.tpl +++ b/templates/help/ja/pgconfig.tpl @@ -149,13 +149,23 @@ Authentication -

enable_pool_hba +

enable_pool_hba (bool)

true ならば、pool_hba.conf に従ってクライアント認証を行います。

デフォルト値は false です。

+ + +

pool_passwd (string) * + +

md5 認証で用いる認証ファイルのファイル名を指定します。

+

デフォルト値は "pool_passwd" です。

+

空文字列("")を指定すると 認証ファイルの読込は無効になります。

+ + +

authentication_timeout (integer) @@ -187,7 +197,7 @@ -

ssl_key (string) +

ssl_key (string) *

フロントエンドとの接続に使用するプライベートキーファイルのフルパスを指定します。 @@ -201,7 +211,7 @@ -

ssl_cert (string) +

ssl_cert (string) *

フロントエンドとの接続に使用する公開x509証明書のフルパスを指定します。 @@ -215,14 +225,14 @@ -

ssl_ca_cert (string) +

ssl_ca_cert (string) * -

ssl_ca_cert_dir (string) +

ssl_ca_cert_dir (string) * @@ -1672,7 +1682,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

use_watchdog (bool) +

use_watchdog (bool) *

watchdog を有効にするには on にします。デフォルトは off です。

@@ -1682,7 +1692,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

trusted_servers (string) +

trusted_servers (string) *

上位接続を確認するための信頼できるサーバリストです。 ping の応答が得られる必要があります。 "hostA,hostB,hostC ..." のようにカンマで区切って複数のサーバを指定できます。

@@ -1692,7 +1702,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

ping_path (string) +

ping_path (string) *

上位サーバへの接続監視に利用する ping コマンドのパスです。 "/bin" のようにパスだけを指定します。

@@ -1702,7 +1712,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_interval (integer) +

wd_interval (integer) *

pgpool-II への生存監視の間隔(秒)です。 (1 以上の数値)

@@ -1710,7 +1720,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_life_point (string) +

wd_life_point (string) *

pgpool-II の死活監視で応答が得られなかった場合のリトライ回数です。 (1 以上の数値)

@@ -1718,7 +1728,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_lifecheck_query (string) +

wd_lifecheck_query (string) *

pgpool-II の死活監視のために発行されるクエリです。 デフォルトは "SELECT 1" です。

@@ -1728,7 +1738,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

delegate_IP (string) +

delegate_IP (string) *

(アプリケーションサーバなど)外部からの接続される pgpool-II の仮想 IP アドレスです。 スタンバイからアクティブに切り替わる際、pgpool はこの仮想 IP を引き継ぎます。

@@ -1737,7 +1747,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

ifconfig_path (string) +

ifconfig_path (string) *

IP アドレス切り替えに利用するコマンドのパスです。 "/sbin" のようにパスだけを指定します。

@@ -1745,7 +1755,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

if_up_cmd (string) +

if_up_cmd (string) *

仮想 IP を起動するために実行するコマンドです。 "ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0" のようにコマンドとパラメータを指定します。 @@ -1755,7 +1765,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

if_down_cmd (string) +

if_down_cmd (string) *

仮想IPを停止するために実行するコマンドです。 "ifconfig eth0:0 down" のようにコマンドとパラメータを指定します。

@@ -1764,7 +1774,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

arping_path (string) +

arping_path (string) *

IP アドレス切り替え後に ARP リクエストを送信するコマンドのパスです。 "/usr/sbin" のようにパスだけを指定します。

@@ -1773,7 +1783,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

arping_cmd (string) +

arping_cmd (string) *

IPアドレス切り替え後にARPリクエストを送信するコマンドです。 "arping -U $_IP_$ -w 1" のようにコマンドとパラメータを指定します。 @@ -1785,7 +1795,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_hostname (string) +

wd_hostname (string) *

watchdog プロセスが相互監視を受信する為のホスト名または IP アドレスです。

@@ -1793,7 +1803,7 @@ black_function_list = 'nextval,setval,lastval,currval' -

wd_port (integer) +

wd_port (integer) *

watchdog プロセスが相互監視を受信する為のポート番号です。

diff --git a/templates/pgconfig.tpl b/templates/pgconfig.tpl index bb00163..50ffc6f 100644 --- a/templates/pgconfig.tpl +++ b/templates/pgconfig.tpl @@ -208,6 +208,15 @@ function delOtherWatchdog(num){ {if $params.enable_pool_hba == 'on'}checked="checked"{/if} /> + {if paramExists('pool_passwd')} + + + +
pool_passwd (string) * + + + {/if} + @@ -223,7 +232,7 @@ function delOtherWatchdog(num){ -
ssl (bool) +
ssl (bool) * @@ -231,28 +240,28 @@ function delOtherWatchdog(num){ -
ssl_key (string) +
ssl_key (string) * -
ssl_cert (string) +
ssl_cert (string) * -
ssl_ca_cert (string) +
ssl_ca_cert (string) * -
ssl_ca_cert_dir (string) +
ssl_ca_cert_dir (string) * @@ -657,7 +666,7 @@ function delOtherWatchdog(num){ -
connection_cache (bool)* +
connection_cache (bool) * @@ -1200,7 +1209,7 @@ function delOtherWatchdog(num){ - {if hasMemqcache()} + {if hasWatchdog()} {* --------------------------------------------------------------------- * * Watchdog * * --------------------------------------------------------------------- *} @@ -1218,7 +1227,7 @@ function delOtherWatchdog(num){ -
use_watchdog (bool) +
use_watchdog (bool) * @@ -1244,21 +1253,21 @@ function delOtherWatchdog(num){ -
wd_interval (integer) +
wd_interval (integer) * -
wd_life_point(integer) +
wd_life_point(integer) * -
wd_lifecheck_query (string) +
wd_lifecheck_query (string) * @@ -1267,42 +1276,42 @@ function delOtherWatchdog(num){ -
delegate_IP (string) +
delegate_IP (string) * -
ifconfig_path (string) +
ifconfig_path (string) * -
if_up_cmd (string) +
if_up_cmd (string) * -
if_down_cmd (string) +
if_down_cmd (string) * -
arping_path (string) +
arping_path (string) * -
arping_cmd (string) +
arping_cmd (string) * @@ -1311,14 +1320,14 @@ function delOtherWatchdog(num){ -
wd_hostname (string) +
wd_hostname (string) * -
wd_port (integer) +
wd_port (integer) *