このページの古いバージョンを表示しています。現在のバージョンを表示します。

現在のバージョンとの相違点 ページ履歴を表示

« 前のバージョン バージョン 41 次のバージョン »

IdPのサービス動作状況を確認する



1.Jetty と、httpd サービスを再起動

IdPの設定変更後に各サービスの再起動を行っていない場合は、行ってください。

CentOS7の場合
# systemctl stop jetty
# systemctl restart httpd # systemctl start jetty



2.動作状況確認URLにアクセス 

IdPサーバ自身から以下のようにアクセスして確認します。

※ホスト名は必ず 127.0.0.1として下さい。

IPv6アドレスでのアクセス制限がうまくいかない場合があります。
# wget -O - http://127.0.0.1/idp/status

外部からステータスページにアクセスしたい場合

監視サーバからのアクセスなど、外部からアクセスしたい場合は、アクセス元のIPアドレスを許可する必要があります。
設定を変更した場合は、再度Jettyの再起動を行ってください。 

 /opt/shibboleth-idp/conf/access-control.xml ファイルにアクセス元となるIPアドレスを設定してください。

<util:map id="shibboleth.AccessControlPolicies">

    <entry key="AccessByIPAddress">
        <bean parent="shibboleth.IPRangeAccessControl"
            p:allowedRanges="#{ {'127.0.0.1/32', '::1/128', 'xxx.xxx.xxx.xxx/xx'} }" /> ← アクセス元のIPアドレス範囲を追加

    </entry>

</util:map>


以下のURLにアクセスします。

※ホスト名を構築した環境に置き換えてアクセスしてください。
https://
example-idp.nii.ac.jp/idp/status

上記のように変更した場合、同じルールを使用している他の機能(resolvertestとreload-*)へのアクセスも許可されます。
/idp/statusのみのアクセス制御を変更したい場合は、上述の<entry>要素を複製・適宜修正し、key属性にユニークな識別子を割り当てた後、idp.propertiesのidp.status.accessPolicyに当該keyを設定してください。

3.3.0以降のidp.propertiesにはidp.status.accessPolicyの行がありませんので、以下のような行を追加してください。

idp.status.accessPolicy = AccessByIPAddressXXX



3.結果の確認 

各サービスの動作状況が確認できます。以下のようにShibboleth IdPのバージョンを含めて各種情報が表示され、以下と比較して大きな違いがなければ、IdPの機能が正常に動作していることの確認が出来ました。

--2020-10-20 15:13:01-- http://127.0.0.1/idp/status
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2374 (2.3K) [text/plain]
Saving to: ‘STDOUT’

 0% [                                                ] 0           --.-K/s
### Operating Environment Information
operating_system: Linux
operating_system_version: 3.10.0-514.6.1.el7.x86_64
operating_system_architecture: amd64
jdk_version: 11.0.8
available_cores: 1
used_memory: 178 MB
maximum_memory: 1500 MB

### Identity Provider Information
idp_version: 4.0.1
start_time: 2020-10-20T06:13:02.027Z
current_time: 2020-10-20T06:13:04.023076Z
uptime: 1996 ms
service: shibboleth.LoggingService
last successful reload attempt: 2020-10-09T10:04:48.292156Z
last reload attempt: 2020-10-09T10:04:48.292156Z
service: shibboleth.AttributeFilterService
last successful reload attempt: 2020-10-09T10:04:52.910079Z
last reload attempt: 2020-10-09T10:04:52.910079Z
service: shibboleth.AttributeResolverService
last successful reload attempt: 2020-10-09T10:04:53.177978Z
last reload attempt: 2020-10-09T10:04:53.177978Z
No Data Connector has ever failed
service: shibboleth.AttributeRegistryService
last successful reload attempt: 2020-10-09T10:04:54.400538Z
last reload attempt: 2020-10-09T10:04:54.400538Z
service: shibboleth.NameIdentifierGenerationService
last successful reload attempt: 2020-10-09T10:04:54.975554Z
last reload attempt: 2020-10-09T10:04:54.975554Z
service: shibboleth.RelyingPartyResolverService
last successful reload attempt: 2020-10-09T10:04:55.195913Z
last reload attempt: 2020-10-09T10:04:55.195913Z
service: shibboleth.MetadataResolverService
last successful reload attempt: 2020-10-09T10:04:56.695849Z
last reload attempt: 2020-10-09T10:04:56.695849Z
metadata source: ShibbolethMetadata
last refresh attempt: 2020-10-20T04:05:06.342026Z
last successful refresh: 2020-10-20T04:05:06.342026Z
last update: 2020-10-09T10:05:03.690858Z
metadata source: HTTPMetadata
last refresh attempt: 2020-10-20T04:05:06.342026Z
last successful refresh: 2020-10-20T04:05:06.342026Z
last update: 2020-10-09T10:05:03.690858Z
root validUntil: 2020-10-21T23:00:00Z
service: shibboleth.ReloadableAccessControlService
last successful reload attempt: 2020-10-09T10:04:58.927762Z
last reload attempt: 2020-10-09T10:04:58.927762Z
service: shibboleth.ReloadableCASServiceRegistry
last successful reload attempt: 2020-10-09T10:04:59.050186Z
last reload attempt: 2020-10-09T10:04:59.050186Z
service: shibboleth.ManagedBeanService
last successful reload attempt: 2020-10-09T10:04:59.148954Z
last reload attempt: 2020-10-09T10:04:59.148954Z
100%[======================================================================================================>] 2,374 --.-K/s in 0s
2020-10-20 15:13:04 (371 MB/s) - written to stdout [2374/2374]


  Parent Page  

  • ラベルがありません