差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_annexes:12_saml [2023/05/12 05:27] – 作成 - 外部編集 127.0.0.1 | ja:documentation:pandorafms:technical_annexes:12_saml [2025/02/20 03:13] (現在) – [サービスプロバイダ設定] junichi | ||
---|---|---|---|
行 1: | 行 1: | ||
====== Pandora FMS での SAML シングルサインオン ====== | ====== Pandora FMS での SAML シングルサインオン ====== | ||
+ | |||
{{indexmenu_n> | {{indexmenu_n> | ||
[[ja: | [[ja: | ||
- | ===== Pandora FMS での | + | **SAML** is an open XML-based authentication and authorization standard. **Pandora FMS** can work as a service provider with its internal |
SAML は、XML をベースにした、認証のためのオープンな標準規格です。Pandora FMS は、内部の SAML IdP(ID プロバイダ) と共に、SP (サービスプロバイダ) として動作します。 | SAML は、XML をベースにした、認証のためのオープンな標準規格です。Pandora FMS は、内部の SAML IdP(ID プロバイダ) と共に、SP (サービスプロバイダ) として動作します。 | ||
- | <WRAP center round important | + | <WRAP center round important |
+ | |||
+ | Administrators always authenticate against the local database. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 90%> | ||
管理者は常にローカルのデータベースで認証されます。 | 管理者は常にローカルのデータベースで認証されます。 | ||
+ | |||
</ | </ | ||
- | ==== Pandora FMS の設定 ==== | + | <wrap #ks1 /> |
+ | |||
+ | ===== Pandora FMS の設定 | ||
- | Go to **Management** → **Setup** → **Setup** → **Authentication** and select SAML under **Authentication method**. | + | It will be necessary |
**管理(Management)** → **セットアップ(Setup)** → **セットアップ(Setup)** → **認証(Authentication)** へ行き、**認証方法(Authentication method)** で SAML を選択します。 | **管理(Management)** → **セットアップ(Setup)** → **セットアップ(Setup)** → **認証(Authentication)** へ行き、**認証方法(Authentication method)** で SAML を選択します。 | ||
行 20: | 行 31: | ||
{{ : | {{ : | ||
- | ==== サービスプロバイダ設定 ==== | + | <wrap #ks2 /> |
- | サービスプロバイダの設定をするには、最初に [[https:// | + | ===== サービスプロバイダ設定 |
- | /simplesaml の認証管理のために、//endpoint// を設定します。 | + | To configure the service provider you will need to download [[https://simplesamlphp.org/|SimpleSamlphp]] and install it in '' |
- | ln -s /opt/ | + | サービスプロバイダの設定をするには、最初に [[https:// |
- | **authsources / | + | Configure an // |
+ | |||
+ | ''/ | ||
+ | |||
+ | <code bash> | ||
+ | ln -s / | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Add your SP to ''/ | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
- | < | ||
' | ' | ||
' | ' | ||
行 36: | 行 60: | ||
' | ' | ||
], | ], | ||
- | </ | ||
- | IdP メタデータを登録します。 | + | </ |
- | <code> | + | The metadata of the '' |
+ | |||
+ | '' | ||
+ | |||
+ | <file> | ||
$metadata[' | $metadata[' | ||
' | ' | ||
行 50: | 行 77: | ||
' | ' | ||
); | ); | ||
- | </ | ||
- | <WRAP center round tip 60%> | + | </ |
- | certFingerprint | + | |
+ | <WRAP center round tip 90%> | ||
+ | |||
+ | It is recommended to use certificate validation with direct certificate instead of '' | ||
</ | </ | ||
- | /// | + | <WRAP center round tip 90%> |
- | simplesamlphp | + | '' |
- | http://< | + | </WRAP> |
- | {{ wiki:saml1.JPG }} | + | It is necessary to make sure that the file ''/ |
+ | ''/ | ||
- | 次のようなログイン画面が表示されるので、saml ユーザとパスワードを入力します。 | + | Once **simplesamlphp** is installed, you can check if the //login// works directly in **SAML**. To do this, access the following IP address and select the authentication source. |
- | {{ wiki: | + | **simplesamlphp** をインストールしたら、**SAML** でのログインが正しく動作するかを確認します。これを行うには、次の IP アドレスにアクセスし、認証ソースを選択します。 |
+ | < | ||
+ | http://< | ||
+ | |||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | A //login// screen like the one below will appear where you will enter a **SAML** user and password that you have created. | ||
+ | |||
+ | 次のような// | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | If the //login// is correct, a summary screen will appear with all the user's attributes. | ||
正しくログインできると、すべてのユーザ属性を含む概要画面が表示されます。 | 正しくログインできると、すべてのユーザ属性を含む概要画面が表示されます。 | ||
+ | |||
+ | The guide is also available at [[https:// | ||
こちらのガイドも参考にしてください。[[https:// | こちらのガイドも参考にしてください。[[https:// | ||
- | ==== IDプロバイダの設定 ==== | + | <wrap #ks3 /> |
- | SAML ユーザが Pandora FMS で正しく生成されるためには、SAML | + | ===== IDプロバイダの設定 |
- | {{ wiki:saml3.JPG }} | + | In order to generate SAML users correctly in Pandora FMS it is necessary to define in each one of them the following identification attributes that appear in the SAML configuration: |
+ | SAML ユーザが Pandora FMS で正しく生成されるためには、SAML 設定に表示される次の識別属性をすべてのユーザに定義する必要があります。 | ||
- | * **ローカル認証へのフォールバック(Failback to local authentication)**: 無効にすると、saml に存在しないユーザはログインできなくなります(管理者ユーザを除く)。saml に対する認証が失敗した際、このオプションが無効になっているとサーバのデータベース上のアカウントはチェックされません。 | + | * <wrap :en>**Failback to local authentication**</ |
+ | * <wrap : | ||
+ | * <wrap : | ||
+ | * <wrap : | ||
+ | * **ローカル認証へのフォールバック(Failback to local authentication)**: | ||
* **リモートユーザの自動作成(Automatically create remote users)**: saml を使用した初回ログイン時に、ユーザを自動的に作成します。無効にする場合は、事前に手動でユーザを作成しておく必要があります。 | * **リモートユーザの自動作成(Automatically create remote users)**: saml を使用した初回ログイン時に、ユーザを自動的に作成します。無効にする場合は、事前に手動でユーザを作成しておく必要があります。 | ||
- | |||
* **SimpleSAML パス(SimpleSAML path)**: **simplesamlphp** がインストールされているディレクトリのパスです。 | * **SimpleSAML パス(SimpleSAML path)**: **simplesamlphp** がインストールされているディレクトリのパスです。 | ||
- | |||
* **SAML ソース(SAML Source)**: クエリが送られる SAML ソースの名前です。名前は以下で選択したソースにマッチする必要があります。 | * **SAML ソース(SAML Source)**: クエリが送られる SAML ソースの名前です。名前は以下で選択したソースにマッチする必要があります。 | ||
- | | + | < |
+ | http://< IP_ADDRESS >/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | * <wrap : | ||
+ | * <wrap : | ||
+ | * <wrap : | ||
+ | * <wrap : | ||
+ | * <wrap : | ||
* **SAML ユーザ ID 属性(SAML user id attribute)**: | * **SAML ユーザ ID 属性(SAML user id attribute)**: | ||
- | |||
* **SAML メール属性(SAML mail attribute)**: | * **SAML メール属性(SAML mail attribute)**: | ||
- | |||
* **SAML グループ名属性(SAML group name attribute)**: | * **SAML グループ名属性(SAML group name attribute)**: | ||
+ | * **プロファイル属性(Profile attribute)**: | ||
* **単一属性/ | * **単一属性/ | ||
- | **単一属性**の利用を選択した場合は、**プロファイル属性(Profile attribute)** および | + | In the case of choosing <wrap :en>**Simple attribute**</ |
- | **複数属性**を選択したときは、以下のフォーマットで属性を指定します。 | + | **単一属性(Simple attribute)**の利用を選択した場合は、**プロファイル属性(Profile attribute)** および **タグ属性(Tag attribute)**が表示されます。そこで、Pandora FMS のプロファイルおよびタグにマッチする SAML 属性を選択します。 |
+ | |||
+ | When <wrap : | ||
+ | |||
+ | **複数属性(Multivalue attributes)**を選択したときは、以下のフォーマットで属性を指定します。 | ||
< | < | ||
行 108: | 行 169: | ||
< | < | ||
</ | </ | ||
+ | |||
</ | </ | ||
+ | |||
+ | Once the attribute in the SAML is created and selected in this way with the configuration in Pandora FMS, the following parameters will be indicated: | ||
属性を SAML で作成し、Pandora FMS の設定を行うと、次のパラメータが表示されます。 | 属性を SAML で作成し、Pandora FMS の設定を行うと、次のパラメータが表示されます。 | ||
{{ wiki: | {{ wiki: | ||
+ | |||
+ | * <wrap : | ||
+ | * <wrap : | ||
* **SAML プロファイルおよびタグ属性**: | * **SAML プロファイルおよびタグ属性**: | ||
+ | * **SAML プロファイルおよびタグプレフィックス(SAML profile and tags prefix)**: 値の属性の役割およびタグキーの前につくプレフィックス。'' | ||
- | * **SAML プロファイルおよびタグプレフィックス(SAML profile | + | <wrap #ks4 /> |
+ | |||
+ | ===== ログイン ===== | ||
+ | |||
+ | It will be necessary to navigate in the Pandora FMS Console | ||
- | ==== ログイン ==== | ||
Pandora FMS コンソールへ行き、// | Pandora FMS コンソールへ行き、// | ||
{{ wiki:Saml idp.png?800 }} | {{ wiki:Saml idp.png?800 }} | ||
+ | |||
+ | After a successful login you will be redirected back to the Pandora FMS Console. | ||
ログインに成功すると、Pandora FMS コンソールにリダイレクトされ戻ってきます。 | ログインに成功すると、Pandora FMS コンソールにリダイレクトされ戻ってきます。 | ||
+ | |||
+ | [[ja: | ||
+ |