IdPのサービス動作状況の確認
IdPのサービス動作状況を確認する
1.Jetty と、httpd サービスを再起動
IdPの設定変更後に各サービスの再起動を行っていない場合は、行ってください。
# systemctl stop jetty# systemctl restart httpd
# systemctl start jetty
2.動作状況確認URLにアクセス
IdPサーバ自身から以下のようにアクセスして確認します。
# wget -O - http://localhost/idp/status
外部からステータスページにアクセスしたい場合
監視サーバからのアクセスなど、外部からアクセスしたい場合は、アクセス元のIPアドレスを許可する必要があります。
設定を変更した場合は、再度Jettyの再起動を行ってください。
/opt/shibboleth-idp/conf/access-control.xml ファイルにアクセス元となるIPアドレスを設定してください。
以下のURLにアクセスします。
※ホスト名を構築した環境に置き換えてアクセスしてください。
https://example-idp.nii.ac.jp/idp/status
上記のように変更した場合、同じルールを使用している他の機能(resolvertestとreload-*)へのアクセスも許可されます。
/idp/statusのみのアクセス制御を変更したい場合は、上述の<entry>要素を複製・適宜修正し、key属性にユニークな識別子を割り当てた後、idp.propertiesのidp.status.accessPolicyに当該keyを設定してください。
3.結果の確認
各サービスの動作状況が確認できます。以下のようにShibboleth IdPのバージョンを含めて各種情報が表示され、以下と比較して大きな違いがなければ、IdPの機能が正常に動作していることの確認が出来ました。
機能に問題がある場合は当該機能(service)に"last failure cause:"という行が付与されエラー内容が表示されます。
ただし、明示的にエラーが表示されず、"last successful reload attempt:"の行が表示されないのみという場合もあるようですので、全ての機能(service)にこの行が存在して最近の日時であることを確認してください。
--2021-08-10 13:19:20-- http://localhost/idp/statusResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 3021 (3.0K) [text/plain]Saving to: 'STDOUT' 0% [ ] 0 --.-K/s ### Operating Environment Informationoperating_system: Linuxoperating_system_version: 3.10.0-1160.36.2.el7.x86_64operating_system_architecture: amd64jdk_version: 11.0.12available_cores: 1used_memory: 201 MBmaximum_memory: 1500 MB### Identity Provider Informationidp_version: 4.1.2start_time: 2021-08-10T02:29:02.499Zcurrent_time: 2021-08-10T04:19:20.805440Zuptime: PT1H50M18.306Senabled modules: idp.authn.Duo (Duo Authentication) idp.authn.External (External Authentication) idp.authn.Function (Function Authentication) idp.authn.IPAddress (IPAddress Authentication) idp.authn.MFA (MFA Authentication) idp.authn.Password (Password Authentication) idp.authn.RemoteUser (RemoteUser Authentication) idp.authn.RemoteUserInternal (RemoteUserInternal Authentication) idp.authn.SPNEGO (SPNEGO Authentication) idp.intercept.ContextCheck (Context Checking Interceptor) idp.intercept.ExpiringPassword (Expiring Password Interceptor) idp.intercept.Impersonate (Impersonation Interceptor) idp.profile.CAS (CAS Protocol Suppport)installed plugins: service: shibboleth.LoggingServicelast successful reload attempt: 2021-08-10T02:27:01.300846Zlast reload attempt: 2021-08-10T02:27:01.300846Zservice: shibboleth.AttributeFilterServicelast successful reload attempt: 2021-08-10T04:12:13.814714Zlast reload attempt: 2021-08-10T04:12:13.814714Zservice: shibboleth.AttributeResolverServicelast successful reload attempt: 2021-08-10T02:27:13.460500Zlast reload attempt: 2021-08-10T02:27:13.460500Z No Data Connector has ever failedservice: shibboleth.AttributeRegistryServicelast successful reload attempt: 2021-08-10T02:27:07.803095Zlast reload attempt: 2021-08-10T02:27:07.803095Zservice: shibboleth.NameIdentifierGenerationServicelast successful reload attempt: 2021-08-10T02:27:15.220310Zlast reload attempt: 2021-08-10T02:27:15.220310Zservice: shibboleth.RelyingPartyResolverServicelast successful reload attempt: 2021-08-10T02:27:15.538725Zlast reload attempt: 2021-08-10T02:27:15.538725Zservice: shibboleth.MetadataResolverServicelast successful reload attempt: 2021-08-10T02:27:09.317461Zlast reload attempt: 2021-08-10T02:27:09.317461Z metadata source: ShibbolethMetadata last refresh attempt: 2021-08-10T02:27:09.825031Z last successful refresh: 2021-08-10T02:27:09.825031Z last update: 2021-08-10T02:27:09.825031Z metadata source: LocalMetadata last refresh attempt: 2021-08-10T02:27:09.825031Z last successful refresh: 2021-08-10T02:27:09.825031Z last update: 2021-08-10T02:27:09.825031Zservice: shibboleth.ReloadableAccessControlServicelast successful reload attempt: 2021-08-10T02:27:16.532224Zlast reload attempt: 2021-08-10T02:27:16.532224Zservice: shibboleth.ReloadableCASServiceRegistrylast successful reload attempt: 2021-08-10T02:27:16.619707Zlast reload attempt: 2021-08-10T02:27:16.619707Zservice: shibboleth.ManagedBeanServicelast successful reload attempt: 2021-08-10T02:27:16.721063Zlast reload attempt: 2021-08-10T02:27:16.721063Z100%[======================================>] 3,021 --.-K/s in 0s 2021-08-10 13:19:20 (496 MB/s) - written to stdout [3021/3021]