SystemLinkユーザ名をOpenID Connectユーザ用に構成する
- 更新日2025-12-03
- 4分で読める
OpenID Connectユーザに、わかりやすいユーザ名を割り当てます。
注記 重複ユーザの作成やユーザごとの設定の損失を回避するには、ユーザがサーバの使用を開始する前にユーザ名を構成します。
- SystemLinkが稼動しているサーバにログインし、C:\Program Files\National Instruments\Shared\Web Server\conf\defines.d\ に移動し、テキストエディタで 50_mod_auth_openidc-defines.conf を開きます。
- 構成 UnDefine AUTH_OIDC_USER_CLAIMを Define AUTH_OIDC_USER_CLAIMに変更し、末尾にSystemLinkがユーザ名として使用するクレームの名前を追加します。ファイルは、ほぼ以下の例のようであるはずです。 メモ ユーザ名は、すべての有効なプロバイダ (OpenID Connect、LDAP、Windows、Webサーバを含む) で一意である必要があります。
# # Defined OpenID-Connect configuration for the Windows Apache installation. # # The name of the JSON map containing metadata about each identity provider. Define AUTH_OIDC_ATTRIBUTES_KEY ni-attributes # CA bundle to use when making requests to an identity provider. Define AUTH_OIDC_BUNDLE ../nicurl/ca-bundle.crt # Override the OIDCCacheShmEntrySizeMax to mitigate claim size issues Define AUTH_OIDC_CACHE_ENTRY_SIZE 66065 # Path to OIDC provider configuration. Define AUTH_OIDC_PROVIDER_DIR ${HTCONF_PATH}/openidc # The location to redirect when performing an OpenID-Connect login. Define AUTH_OIDC_REDIRECT_URI /login/openidc-redirect # # User-editable variables. # # Whether OIDC is enabled. Define AUTH_OIDC_ENABLED # The claim that will be used as the SystemLink user name. # If not defined, a combination of the sub and iss claims will be used. Define AUTH_OIDC_USER_CLAIM email # When enabled, /login/openidc-redirect?info=json and # /login/openidc-redirect?info=html will return the claims for the currently # logged in user. UnDefine AUTH_OIDC_ENABLE_CLAIM_INFO - ファイルを保存し、NI Webサーバを再起動します。
関連コンテンツ
- OpenID Connectユーザのクレームを表示する
クレームを使用して、OpenID Connectユーザを役割に割り当て、SystemLinkユーザ名を更新することができます。