ja:documentation:pandorafms:cybersecurity:07_safety_functions

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:cybersecurity:07_safety_functions [2025/08/30 22:43] – [Configuring Pandora FMS with SAML] junichija:documentation:pandorafms:cybersecurity:07_safety_functions [2025/08/30 23:14] (現在) – [Configuration in SimpleSAMLphp] junichi
行 409: 行 409:
 <wrap #ks1_5_3 /> <wrap #ks1_5_3 />
  
-=== Configuring Azure with SAML ===+=== SAML を利用する Azure の設定 ===
  
 In Azure® services, you must access the **Extra ID** section: In Azure® services, you must access the **Extra ID** section:
 +
 +Azure® サービスでは、**Extra ID** セクションにアクセスする必要があります。
  
 {{ wiki:pfms-saml-image_40.png  }} {{ wiki:pfms-saml-image_40.png  }}
  
 Then go to **Business Applications**: Then go to **Business Applications**:
 +
 +次に**ビジネスアプリケーション**に移動します。
  
 {{ wiki:pfms-saml-image_42.png  }} {{ wiki:pfms-saml-image_42.png  }}
  
 A new application is created (or an existing one is used): A new application is created (or an existing one is used):
 +
 +新しいアプリケーションが作成されます (または既存のアプリケーションが使用されます)。
  
 {{ wiki:pfms-saml-image_44.png  }} {{ wiki:pfms-saml-image_44.png  }}
  
 Single sign-on access: Single sign-on access:
 +
 +シングルサインオンアクセス:
  
 {{ wiki:pfms-saml-image_46.png  }} {{ wiki:pfms-saml-image_46.png  }}
  
 Edit the basic SAML configuration: Edit the basic SAML configuration:
 +
 +基本的な SAML 設定を編集します。
  
 {{ wiki:pfms-saml-image_48.png  }} {{ wiki:pfms-saml-image_48.png  }}
  
 Fill in the following fields with the ID for the application, the address of the installed **SimpleSAMLphp** (replace "pandora.local" with the URL of the PFMS web console) and the address to which Azure® will redirect when the session is closed: Fill in the following fields with the ID for the application, the address of the installed **SimpleSAMLphp** (replace "pandora.local" with the URL of the PFMS web console) and the address to which Azure® will redirect when the session is closed:
 +
 +次のフィールドに、アプリケーションの ID、インストールされている **SimpleSAMLphp** のアドレス ("pandora.local" を PFMS Web コンソールの URL に置き換えます)、およびセッションが終了したときに Azure® がリダイレクトするアドレスを入力します。
  
 {{ wiki:pfms-saml-image_50.png  }} {{ wiki:pfms-saml-image_50.png  }}
  
 Download the XML file with federation metadata, which will be used later: Download the XML file with federation metadata, which will be used later:
 +
 +後で使用するフェデレーションメタデータを含む XML ファイルをダウンロードします。
  
 {{ wiki:pfms-saml-image_52.png  }} {{ wiki:pfms-saml-image_52.png  }}
  
 Finally, save the ID from the previous step and the URL of the extra identifier: Finally, save the ID from the previous step and the URL of the extra identifier:
 +
 +最後に、前の手順の ID と追加識別子の URL を保存します。
  
 {{ wiki:pfms-saml-image_54.png  }} {{ wiki:pfms-saml-image_54.png  }}
  
 <wrap #ks1_5_3_1 /> <wrap #ks1_5_3_1 />
-== Configuration in SimpleSAMLphp ==+ 
 +== SimpleSAMLphp の設定 ==
  
 The file ''/opt/simplesamlphp/config/authsources.php'' must be edited with the following values: The file ''/opt/simplesamlphp/config/authsources.php'' must be edited with the following values:
 +
 +ファイル ''/opt/simplesamlphp/config/authsources.php'' を次の値で編集する必要があります。
  
 {{ wiki:pfms-saml-image_56.png  }} {{ wiki:pfms-saml-image_56.png  }}
  
 And on the SimpleSAMLphp website, go to the **Federation** menu and then to the **Tools** section for converting XML to PHP: And on the SimpleSAMLphp website, go to the **Federation** menu and then to the **Tools** section for converting XML to PHP:
 +
 +SimpleSAMLphp Web サイトで、**Federation** メニューに移動し、**Tools** セクションに移動して XML を PHP に変換します。
  
 {{ wiki:pfms-saml-image_58.png  }} {{ wiki:pfms-saml-image_58.png  }}
  
 The name ''saml20-idp-remote.php.dist'' must be changed to: The name ''saml20-idp-remote.php.dist'' must be changed to:
 +
 +名前 ''saml20-idp-remote.php.dist'' を次のように変更する必要があります。
  
 <code bash> <code bash>
行 462: 行 485:
  
 Copy the contents of the previously downloaded XML file, paste it, and process it. This will generate a configuration text for PHP, which you should copy and paste into the file ''/opt/simplesamlphp/config/authsources.php'', **replacing all of its contents**. Copy the contents of the previously downloaded XML file, paste it, and process it. This will generate a configuration text for PHP, which you should copy and paste into the file ''/opt/simplesamlphp/config/authsources.php'', **replacing all of its contents**.
 +
 +先ほどダウンロードした XML ファイルの内容をコピーし、貼り付けて処理します。これにより PHP の設定テキストが生成されるので、それをコピーして ''/opt/simplesamlphp/config/authsources.php'' ファイルに貼り付け、**すべての内容を置き換えます**。
  
 If everything is correct, proceed to perform a test: If everything is correct, proceed to perform a test:
 +
 +すべてが正しければ、テストの実行に進みます。
  
 {{ wiki:pfms-saml-image_60.png  }} {{ wiki:pfms-saml-image_60.png  }}
  
 Obtaining the following result: Obtaining the following result:
 +
 +次の結果が得られます。
  
 {{ wiki:pfms-saml-image_62.png  }} {{ wiki:pfms-saml-image_62.png  }}
  
 The email address and user ID can be taken from the attributes returned by Azure® in the test performed above: The email address and user ID can be taken from the attributes returned by Azure® in the test performed above:
 +
 +電子メールアドレスとユーザ ID は、上記で実行したテストで Azure® によって返された属性から取得できます。
  
 {{ :wiki:pfms-saml-image_80.png  }} {{ :wiki:pfms-saml-image_80.png  }}
行 478: 行 509:
    
 For advanced configuration, you can delve deeper into the //mapping// of properties or select a default one if none match: For advanced configuration, you can delve deeper into the //mapping// of properties or select a default one if none match:
 +
 +高度な設定では、プロパティの //マッピング// をさらに詳しく調べたり、一致するものがない場合にはデフォルトのプロパティを選択したりできます。
  
 {{ :wiki:pfms-saml-image_100.png  }} {{ :wiki:pfms-saml-image_100.png  }}
  
 <wrap #ks2 /> <wrap #ks2 />
-===== Password encryption =====+ 
 +===== パスワード暗号化 =====
  
 Pandora FMS allows to encrypt the passwords stored in the database. Pandora FMS allows to encrypt the passwords stored in the database.
 +
 +Pandora FMS はデータベース上のパスワードの暗号化に対応しています。
  
 The encryption key is generated from a user-supplied password <wrap hi>**and is not stored in the database** (//neither the password nor the key//)</wrap>, so that passwords cannot be recovered from a database dump. The encryption key is generated from a user-supplied password <wrap hi>**and is not stored in the database** (//neither the password nor the key//)</wrap>, so that passwords cannot be recovered from a database dump.
 +
 +暗号化キーは、ユーザが用意するパスフレーズから生成され、<wrap hi>(キーやパスフレーズも含め)データベースには保存されません</wrap>。これにより、データベースのダンプからパスワードを再現することはできません。
  
 Once the user sets the password, the encryption works transparently to the user. Once the user sets the password, the encryption works transparently to the user.
 +
 +ユーザがパスワードを設定すると、暗号化はユーザーに対して透過的に機能します。
  
 <WRAP center round important 90%> <WRAP center round important 90%>
  
 If the password provided by the user is lost, you will not be able to recover the passwords stored in the Pandora FMS database. Save in a safe place or make a backup of the ''config.php'' and ''pandora_server.conf'' files. If the password provided by the user is lost, you will not be able to recover the passwords stored in the Pandora FMS database. Save in a safe place or make a backup of the ''config.php'' and ''pandora_server.conf'' files.
 +
 +</WRAP>
 +
 +<WRAP center round important 90%>
 +
 +ユーザが入力したパスワードが失われた場合、Pandora FMS データベースに保存されているパスワードを回復することはできません。安全な場所に保存するか、''config.php'' および ''pandora_server.conf'' ファイルのバックアップを作成してください。
  
 </WRAP> </WRAP>
  
 <wrap #ks2_1 /> <wrap #ks2_1 />
-==== Technical details ====+ 
 +==== 技術詳細 ====
  
 Passwords are encrypted using the Rijndael cipher with 128-bit blocks in ECB mode. A 256-bit key is generated at startup from the MD5 of the password set by the user. Passwords are encrypted using the Rijndael cipher with 128-bit blocks in ECB mode. A 256-bit key is generated at startup from the MD5 of the password set by the user.
 +
 +パスワードは、128bit の Rijndael cipher の ECB モードを使って暗号化しています。パスフレーズの MD5 から、最初に 256bit のキーが生成されます。
  
 <wrap #ks2_2 /> <wrap #ks2_2 />
-==== Configuration in a new Pandora FMS installation ====+ 
 +==== 新規インストールの Pandora FMS での設定 ====
  
 To enable key encryption, **the password must be configured both in the Pandora FMS Server and in the Web Console**. To enable key encryption, **the password must be configured both in the Pandora FMS Server and in the Web Console**.
 +
 +キー暗号化を有効にするには、**Pandora FMS サーバと Web コンソールの両方でパスワードを設定する必要があります**。
  
 The steps to follow for encryption are as follows: The steps to follow for encryption are as follows:
 +
 +暗号化の手順は次の通りです。
  
   * Stop the server, both in **Command Center (Metaconsole)** and in the **nodes**.   * Stop the server, both in **Command Center (Metaconsole)** and in the **nodes**.
 +
 +  * **コマンドセンター (メタコンソール)** と **ノード** の両方でサーバを停止します。
  
   * Update the ''encryption_passphrase'' fields in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'', both in **Command Center (Metaconsole)** and in **nodes**.   * Update the ''encryption_passphrase'' fields in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'', both in **Command Center (Metaconsole)** and in **nodes**.
 +
 +  * ''/etc/pandora/pandora_server.conf'' 内の **encryption_passphrase** および、**ノード** および **コマンドセンター(メタコンソール)** 双方の ''/var/www/html/pandora_console/include/config.php'' を更新します。
  
 <code> <code>
行 517: 行 575:
  
   * Launch the encryption script both in **Command Center (Metaconsole)** and in the **nodes**.   * Launch the encryption script both in **Command Center (Metaconsole)** and in the **nodes**.
 +
 +  * **ノード** および **コマンドセンター(メタコンソール)** 両方の暗号化スクリプトを起動します。
  
 <code bash> <code bash>
行 525: 行 585:
  
 The Pandora FMS server should be restarted after making the changes and launching the script. The Pandora FMS server should be restarted after making the changes and launching the script.
 +
 +</WRAP>
 +
 +<WRAP center round tip 90%>
 +
 +変更を加えてスクリプトを実行した後、Pandora FMS サーバを再起動する必要があります。
  
 </WRAP> </WRAP>
  
 <wrap #ks2_3 /> <wrap #ks2_3 />
-==== Changing the encryption password ====+ 
 +==== 暗号化パスワードの変更 ====
  
 It is possible to change the encryption password in case it has been compromised. You must first decrypt the passwords stored in the database: It is possible to change the encryption password in case it has been compromised. You must first decrypt the passwords stored in the database:
 +
 +暗号化パスワードが漏洩した場合には、それを変更することができます。まず、データベースに保存されているパスワードを復号化する必要があります。
  
 <code> <code>
行 538: 行 607:
  
 Then, after having changed the encryption password (as described in the section for [[#ks2|configuration in a new installation]]), you can encrypt it again: Then, after having changed the encryption password (as described in the section for [[#ks2|configuration in a new installation]]), you can encrypt it again:
 +
 +その後、暗号化パスワードを変更し([[#ks2_2|新規インストールでの設定]]のセクションで説明したように)、再度暗号化することができます。
  
 <code bash> <code bash>
行 546: 行 617:
  
 From 7.0 NG 739 onwards, the [[:en:documentation:pandorafms:management_and_operation:11_managing_and_administration#ks2|secure credential manager]] is included. **Please refer to the following section to finish this process correctly**. From 7.0 NG 739 onwards, the [[:en:documentation:pandorafms:management_and_operation:11_managing_and_administration#ks2|secure credential manager]] is included. **Please refer to the following section to finish this process correctly**.
 +
 +</WRAP>
 +
 +<WRAP center round important 90%>
 +
 +7.0NG 739 以降には、[[:ja:documentation:pandorafms:management_and_operation:11_managing_and_administration#認証情報ストア|安全な認証管理]]が含まれています。**この処理を正しく完了するには、次の章を参照してください**。
  
 </WRAP> </WRAP>
  
 **Credential store**: **Credential store**:
 +
 +**認証情報ストア:**
  
 If you have an encrypted database, in order to continue using the credential manager without losing data //decrypt everything// except the **tcredential_store** table. If you have an encrypted database, in order to continue using the credential manager without losing data //decrypt everything// except the **tcredential_store** table.
 +
 +暗号化されたデータベースがある場合、データを失うことなく資格情報管理を引き続き使用するには、**tcredential_store** テーブルを除くすべてのデータを復号化します。
  
 To do so, execute the following commands: To do so, execute the following commands:
 +
 +それには次のコマンドを実行します。
  
 <code bash> <code bash>
行 560: 行 643:
  
 It will be deciphered. It will be deciphered.
 +
 +暗号化が解除されます。
  
 Once decrypted, it will be re-encrypted again: Once decrypted, it will be re-encrypted again:
 +
 +暗号化を解除したら、再度暗号化を行います。
  
 <code bash> <code bash>
行 568: 行 655:
  
 If you only want to encrypt from scratch, just execute the last command. If you only want to encrypt from scratch, just execute the last command.
 +
 +初回の暗号化では、最後のコマンドを実行します。
  
 <wrap #ks2_4 /> <wrap #ks2_4 />
-==== Removing the encryption password ====+ 
 +==== 暗号化パスワードの削除 ====
  
 <WRAP center round important 90%> <WRAP center round important 90%>
  
 It is recommended to keep **every** password stored in Pandora FMS encrypted. It is recommended to keep **every** password stored in Pandora FMS encrypted.
 +
 +</WRAP>
 +
 +<WRAP center round important 90%>
 +
 +Pandora FMS に保存される **すべての** パスワードを暗号化しておくことをお勧めします。
  
 </WRAP> </WRAP>
行 580: 行 676:
   * Stop the server, both in **Command Center (Metaconsole)** and in the **nodes**.   * Stop the server, both in **Command Center (Metaconsole)** and in the **nodes**.
   * Launch the decryption script both in **Command Center (Metaconsole)** and in the **nodes**.   * Launch the decryption script both in **Command Center (Metaconsole)** and in the **nodes**.
 +
 +  * **コマンドセンター(メタコンソール)** と **ノード** 双方のサーバを停止します。
 +  * **コマンドセンター(メタコンソール)** と **ノード** の両方で復号化スクリプトを起動します。
  
 <code bash> <code bash>
行 586: 行 685:
  
   * Comment **encryption_passphrase** in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'' both in **Command Center (Metaconsole)** and in **nodes**.   * Comment **encryption_passphrase** in ''/etc/pandora/pandora_server.conf'' and ''/var/www/html/pandora_console/include/config.php'' both in **Command Center (Metaconsole)** and in **nodes**.
 +
 +  * **コマンドセンター (メタコンソール)** と **ノード** の両方で、''/etc/pandora/pandora_server.conf'' と ''/var/www/html/pandora_console/include/config.php'' の **encryption_passphrase** をコメントアウトします。
  
 <code> <code>
行 594: 行 695:
  
 The Pandora FMS server should be restarted after making the changes and launching the script. The Pandora FMS server should be restarted after making the changes and launching the script.
 +
 +</WRAP>
 +
 +<WRAP center round tip 90%>
 +
 +変更を加えてスクリプトを実行した後は、Pandora FMS サーバを再起動することを忘れないでください。
  
 </WRAP> </WRAP>
  
 <wrap #ks3 /> <wrap #ks3 />
-===== User password policy =====+ 
 +===== ユーザパスワードポリシー =====
  
  
行 607: 行 715:
 </WRAP> </WRAP>
 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\
 +
 +<WRAP left round box 50%>
 +
 +<wrap :ja>**管理(Management) → セットアップ(Setup) → セットアップ(Setup) →  パスワードポリシー(Password policy)**</wrap> menu.
 +
 +</WRAP>
 +\\ \\ \\ \\ \\
 +
 To activate the password policy, you must have an administrator profile (<wrap :en>**Pandora administrator**</wrap>) or be a **[[:en:documentation:pandorafms:introduction:03_glossary#superadmin|superadmin]]**. To activate the password policy, you must have an administrator profile (<wrap :en>**Pandora administrator**</wrap>) or be a **[[:en:documentation:pandorafms:introduction:03_glossary#superadmin|superadmin]]**.
 +
 +パスワード ポリシーを有効にするには、管理者プロファイル (<wrap :en>**Pandora 管理者**</wrap>) を持っているか、**[[:ja:documentation:pandorafms:introduction:03_glossary#スーパー管理者|スーパー管理者]]** である必要があります。
  
 Important fields: Important fields:
 +
 +重要なフィールド:
  
   * <wrap :en>**Enable password policy**</wrap>: Deactivated by default.   * <wrap :en>**Enable password policy**</wrap>: Deactivated by default.
行 622: 行 742:
   * <wrap :en>**Apply password policy to admin users**</wrap>: Applies the password policy also to administrator users, activated by default.   * <wrap :en>**Apply password policy to admin users**</wrap>: Applies the password policy also to administrator users, activated by default.
   * <wrap :en>**Exclusion list for passwords**</wrap>: Allows you to add a list of passwords explicitly excluded from use in Pandora FMS.   * <wrap :en>**Exclusion list for passwords**</wrap>: Allows you to add a list of passwords explicitly excluded from use in Pandora FMS.
 +
 +  * **パスワードポリシーの有効化(Enable password policy): ** パスワードポリシーを有効化/無効化します。デフォルトでは無効化されています。
 +  * **最小パスワードサイズ(Min. size Password): ** パスワードの最小の長さです。デフォルトでは 4文字です。
 +  * **パスワードの期限切れ(Password Expiration): ** パスワードが期限切れになるまでの期間です。デフォルトでは ''0'' です(期限切れになりません)。
 +  * **ログインに失敗するとユーザをブロック(Block user if login fails): ** 最大失敗回数パスワードを間違えた場合に、ユーザをブロックする時間(分)です。デフォルトは 5分です。
 +  * **ログイン失敗回数(Number of failed login attempts): ** ログイン失敗許容回数です。デフォルトは 5回です。
 +  * **パスワード履歴の有効化(Enable password history)** と **以前のパスワードとの比較(Compare previous password): ** これらは連携して、ユーザがパスワードを重複して使用することを防ぎます。最初のトークンは有効にし、2番目のトークンは 0(デフォルトは ''3'' )より大きい値に設定する必要があります。これにより、ユーザの新しいパスワードは、同じユーザが以前に使用した ''3''(または指定された回数)と比較されます。
 +  * **パスワードには数値を含む必要があります(Password must have numbers): ** パスワードに数字を含む必要があるかどうかです。デフォルトでは無効化されています。
 +  * **パスワードには記号を含む必要があります(Password must have symbols): ** パスワードに記号を含む必要があるかどうかです。デフォルトでは無効化されています。
 +  * **初回ログイン時にパスワードを変更する(Force change password on first login): ** ユーザ作成後、初回ログイン時にパスワードを変更します。デフォルトでは無効化されています。
 +  * **管理者ユーザへパスワードポリシーを適用(Apply password policy to admin users): ** 管理者ユーザにもパスワードポリシーを適用します。デフォルトでは無効化されています。
 +  * **パスワード履歴の有効化(Enable password history): ** パスワード履歴の有効化/無効化です。デフォルトでは無効化されています。
 +  * **パスワードの除外リスト(Exclusion list for passwords)**: Pandora FMS での使用を明示的に除外するパスワードのリストを追加できます。
  
 <wrap #ks4 /> <wrap #ks4 />
-===== Audit log =====+ 
 +===== 監査ログ =====
  
 <WRAP left round box 50%> <WRAP left round box 50%>
行 632: 行 766:
 </WRAP> </WRAP>
 \\ \\ \\ \\ \\ \\ \\ \\ \\ \\
 +
 +<WRAP left round box 50%>
 +
 +<wrap :ja>**管理(Management) → 管理ツール(Admin tools) → システム監査ログ(System Audit Log)**</wrap> メニュー
 +
 +</WRAP>
 +\\ \\ \\ \\ \\
 +
 Pandora FMS keeps a log with all the changes and actions of importance produced in the Pandora FMS Console. There you will see a series of entries related to the Console activity, information about the user, type of action, date and a short description of the registered events. Pandora FMS keeps a log with all the changes and actions of importance produced in the Pandora FMS Console. There you will see a series of entries related to the Console activity, information about the user, type of action, date and a short description of the registered events.
 +
 +Pandora FMS は、Pandora FMS コンソールで行われたすべての重要な変更とアクションのログを保持します。ログには、コンソールのアクティビティ、ユーザ情報、アクションの種類、日付、登録されたイベントの簡単な説明など、一連のエントリが表示されます。
  
 {{  :wiki:pfms-management-admin_tools-system_audit_tools.png  }} {{  :wiki:pfms-management-admin_tools-system_audit_tools.png  }}
  
 You can filter which entries to display by different criteria, including: actions, user and IP address. You can even perform a text search and determine the maximum hours to be searched, with the option to save the filter if it is frequently used. You can filter which entries to display by different criteria, including: actions, user and IP address. You can even perform a text search and determine the maximum hours to be searched, with the option to save the filter if it is frequently used.
 +
 +アクション、ユーザ、IPアドレスなど、様々な基準で表示するエントリをフィルタリングできます。テキスト検索を実行したり、検索対象とする最大時間を指定したりすることも可能です。フィルターを頻繁に使用する場合は、保存しておくこともできます。
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
  
  • ja/documentation/pandorafms/cybersecurity/07_safety_functions.1756593823.txt.gz
  • 最終更新: 2025/08/30 22:43
  • by junichi