差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_annexes:46_mysql_sha [2025/01/22 07:51] – 作成 junichi | ja:documentation:pandorafms:technical_annexes:46_mysql_sha [2025/03/10 07:40] (現在) – [概要] junichi | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== | + | ====== MySQL での SHA 認証設定 |
{{indexmenu_n> | {{indexmenu_n> | ||
+ | |||
+ | [[: | ||
<wrap #ks1 /> | <wrap #ks1 /> | ||
- | ===== Introduction | + | ===== 概要 |
- | As of MySQL version 8 the hashing of database user passwords | + | As of MySQL version 8, |
+ | |||
+ | MySQL バージョン 8 以降、データベースユーザパスワードのハッシュはデフォルトで [[https:// | ||
On a new MySQL 8 installation this is the default method, however, MySQL servers that have upgraded from previous versions retain the previous method called '' | On a new MySQL 8 installation this is the default method, however, MySQL servers that have upgraded from previous versions retain the previous method called '' | ||
+ | |||
+ | 新しい MySQL 8 インストールではこれがデフォルトの方法ですが、以前のバージョンからアップグレードした MySQL サーバでは、以前の方法である '' | ||
In Pandora\_FMS the connection between the Web Console and the PFMS server (// | In Pandora\_FMS the connection between the Web Console and the PFMS server (// | ||
+ | |||
+ | Pandora FMS では、Web コンソールと PFMS サーバ (// | ||
In view of this situation, and in order to keep security best practices up to date, it is recommended to change the encryption protocol from '' | In view of this situation, and in order to keep security best practices up to date, it is recommended to change the encryption protocol from '' | ||
+ | |||
+ | このような状況を考慮し、セキュリティのベストプラクティスを最新の状態に保つために、このチュートリアルでは、デフォルトユーザ '' | ||
<wrap #ks2 /> | <wrap #ks2 /> | ||
- | ===== Prerequisites | + | |
+ | ===== 前提条件 | ||
You must confirm if you have installed a version equal or later than MySQL 8.0.4 with the following command (in its long version): | You must confirm if you have installed a version equal or later than MySQL 8.0.4 with the following command (in its long version): | ||
+ | |||
+ | 次のコマンド (長いバージョン) を使用して、MySQL 8.0.4 以降のバージョンがインストールされているかどうかを確認する必要があります。 | ||
<code bash> | <code bash> | ||
行 25: | 行 38: | ||
Or in its short version: | Or in its short version: | ||
+ | |||
+ | あるいは短縮版では次のようになります。 | ||
<code bash> | <code bash> | ||
行 32: | 行 47: | ||
You will get something similar to this: | You will get something similar to this: | ||
+ | |||
+ | 次のような内容が表示されます: | ||
< | < | ||
行 50: | 行 67: | ||
Obtaining a result similar to the following: | Obtaining a result similar to the following: | ||
+ | |||
+ | {{ : | ||
+ | \\ | ||
+ | </ | ||
+ | |||
+ | <WRAP center round info 90%> | ||
+ | |||
+ | ここでは、'' | ||
+ | |||
+ | それぞれの特定のケースでは、次の方法でこれらの値を参照できます。 | ||
+ | |||
+ | <code bash> | ||
+ | cat / | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | 次のような結果が得られます。 | ||
{{ : | {{ : | ||
行 56: | 行 90: | ||
<wrap #ks3 /> | <wrap #ks3 /> | ||
- | ===== Procedure for all operating systems | + | |
+ | ===== すべてのオペレーティングシステム向けの手順 | ||
* **Stop PFMS server**. | * **Stop PFMS server**. | ||
+ | |||
+ | * **PFMS サーバの停止** | ||
It must be executed in a terminal window: | It must be executed in a terminal window: | ||
+ | |||
+ | ターミナルウィンドウで実行する必要があります: | ||
<code bash> | <code bash> | ||
行 68: | 行 107: | ||
* **Active user check**. | * **Active user check**. | ||
+ | |||
+ | * **アクティブなユーザ確認** | ||
It is necessary to check if the active user for database connection (by default '' | It is necessary to check if the active user for database connection (by default '' | ||
+ | |||
+ | データベース接続のアクティブユーザ (デフォルトでは '' | ||
<code sql> | <code sql> | ||
行 77: | 行 120: | ||
You will get an answer similar to: | You will get an answer similar to: | ||
+ | |||
+ | 次のような応答が得られます。 | ||
{{ : | {{ : | ||
* **Change password type**. | * **Change password type**. | ||
+ | |||
+ | * **パスワードタイプの変更** | ||
The authentication method is changed and a password is defined with the following statement: | The authentication method is changed and a password is defined with the following statement: | ||
+ | |||
+ | 次のステートメントを使用して認証方法を変更し、パスワードを定義します。 | ||
<code sql> | <code sql> | ||
行 90: | 行 139: | ||
* **Checking the change**. | * **Checking the change**. | ||
+ | |||
+ | * **変更の確認** | ||
When running again: | When running again: | ||
+ | |||
+ | 再度実行した場合: | ||
<code sql> | <code sql> | ||
行 99: | 行 152: | ||
The following should be obtained: | The following should be obtained: | ||
+ | |||
+ | 次のような出力が得られます。 | ||
{{ : | {{ : | ||
Once the change has been verified at the server level, close the MySQL interface with the '' | Once the change has been verified at the server level, close the MySQL interface with the '' | ||
+ | |||
+ | サーバレベルで変更を確認したら、'' | ||
<wrap #ks4 /> | <wrap #ks4 /> | ||
- | ===== Customer configuration | + | |
+ | ===== クライアント設定 | ||
As explained in [[# | As explained in [[# | ||
+ | |||
+ | [[# | ||
<wrap #ks4_1 /> | <wrap #ks4_1 /> | ||
+ | |||
==== EL8 / EL9 ==== | ==== EL8 / EL9 ==== | ||
You must have the '' | You must have the '' | ||
+ | |||
+ | ほとんどの EL8 および EL9 環境ではデフォルトでインストールされている '' | ||
The file is checked for existence with: | The file is checked for existence with: | ||
+ | |||
+ | ファイルの存在は次のように確認できます: | ||
<code bash> | <code bash> | ||
行 122: | 行 187: | ||
A positive response similar to the following will be obtained: | A positive response similar to the following will be obtained: | ||
+ | |||
+ | 次のような応答が得られます。 | ||
{{ : | {{ : | ||
The next step is to create a symbolic link to that file with the command: | The next step is to create a symbolic link to that file with the command: | ||
+ | |||
+ | 次のステップは、次のコマンドを使用してそのファイルへのシンボリックリンクを作成することです。 | ||
<code bash> | <code bash> | ||
行 133: | 行 202: | ||
The link made with is checked: | The link made with is checked: | ||
+ | |||
+ | 作成されたリンクは次のように確認します: | ||
<code bash> | <code bash> | ||
行 140: | 行 211: | ||
The following positive response was obtained: | The following positive response was obtained: | ||
+ | |||
+ | 次のような応答が得られます。 | ||
{{ : | {{ : | ||
行 145: | 行 218: | ||
With all steps successfully completed, [[#ks5|only the PFMS server restart]] remains. | With all steps successfully completed, [[#ks5|only the PFMS server restart]] remains. | ||
+ | すべての手順が正常に完了したら、あとは [[#ks5|PFMS サーバの再起動]] のみです。 | ||
<wrap #ks4_2 /> | <wrap #ks4_2 /> | ||
+ | |||
==== Ubuntu ==== | ==== Ubuntu ==== | ||
The '' | The '' | ||
+ | |||
+ | '' | ||
<code bash> | <code bash> | ||
行 157: | 行 234: | ||
It is verified that the required file has been generated with the installation of the package, '' | It is verified that the required file has been generated with the installation of the package, '' | ||
+ | |||
+ | パッケージ '' | ||
<code bash> | <code bash> | ||
行 163: | 行 242: | ||
The destination folder ''/ | The destination folder ''/ | ||
+ | |||
+ | 次のコマンドを使用して、フォルダ ''/ | ||
<code bash> | <code bash> | ||
行 170: | 行 251: | ||
Now the symbolic link must be created: | Now the symbolic link must be created: | ||
+ | |||
+ | ここで、シンボリックリンクを作成する必要があります。 | ||
<code bash> | <code bash> | ||
行 176: | 行 259: | ||
With these steps the server will be able to use SHA2 authentication to connect to the database. Go to [[#ks5|next step (restart Pandora FMS server)]] to finish the configuration. | With these steps the server will be able to use SHA2 authentication to connect to the database. Go to [[#ks5|next step (restart Pandora FMS server)]] to finish the configuration. | ||
+ | |||
+ | この手順により、サーバは SHA2 認証を使用してデータベースに接続できるようになります。[[# | ||
<wrap #ks5 /> | <wrap #ks5 /> | ||
- | ===== Restart | + | |
+ | ===== PFMS サーバの再起動 | ||
To be executed: | To be executed: | ||
+ | |||
+ | 以下を実行します: | ||
<code bash> | <code bash> | ||
行 188: | 行 276: | ||
After a few moments, the status must be confirmed via the Web Console. (menú <wrap : | After a few moments, the status must be confirmed via the Web Console. (menú <wrap : | ||
+ | |||
+ | しばらくしたら、Web コンソールからステータスを確認します。(メニュー <wrap : | ||
{{ : | {{ : | ||
- | [[:en: | + | [[:ja: |