OpenID Connectユーザに、わかりやすいユーザ名を割り当てます。

開始する前に、「OpenID Connectユーザのクレームを表示する」の手順に従ってユーザクレームを取得します。
SystemLinkは、OpenID Connectクレームを使用して各ユーザに固有のユーザ名を作成します。SystemLinkは、値がすべてのプロバイダで一意になるように、デフォルトで sub と iss クレームを使用します。ただし、多くの場合、これらのクレームにはプロバイダからの内部IDまたはURLが入ります。
注記 重複ユーザの作成やユーザごとの設定の損失を回避するには、ユーザがサーバの使用を開始する前にユーザ名を構成します。
  1. SystemLinkが稼動しているサーバにログインし、C:\Program Files\National Instruments\Shared\Web Server\conf\defines.d\ に移動し、テキストエディタで 50_mod_auth_openidc-defines.conf を開きます。
  2. 構成 UnDefine AUTH_OIDC_USER_CLAIMDefine 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
  3. ファイルを保存し、NI Webサーバを再起動します。