legacy-knowledge-base
公開されました Jul. 2, 2025

「必須」オプションが有効な場合、LDAP サーバーに到達できません

投稿者

Sivakumar Perumal

knowledge-article-header-disclaimer-how-to

knowledge-article-header-disclaimer

legacy-article

learn-legacy-article-disclaimer-text

問題

  • デフォルト インスタンス以外の仮想インスタンスでは、LDAP の [必須] オプションが有効になっている場合、LDAP ユーザーのみがポータルにログインできます。 LDAP サーバーがダウン/到達不能の場合、どのユーザーもログインできません。 その場合、ポータルにログインして LDAP 構成を変更する方法。

Environment

  • Liferay DXP 7.2
  • Liferay DXP 7.1

解決策

configs フォルダー内に構成ファイル (com.liferay.portal.security.ldap.authenticator.configuration.LDAPAuthConfiguration.config) を配置すると、「必須」オプションを有効または無効にし、LDAP サーバーを無効にすることさえできます。値に基づいています。 これにより、すべてのユーザーがポータルにログインできるようになります。

How to get config file?

Step1: Enable LDAP from System Settings and export the config file.

Control Panel -> Configuration -> System Settings -> LDAP -> Click on the lexicon three-dot button and click on export. It will provide the config file.
(disable LDAP from system settings after downloaded the config file)

Step2: Need to find the companyId.
Control Panel -> Configuration -> Virtual Instances -> Note the Instance Id.

Note: Instance Id and companyId are same.

それぞれのインスタンス ID を companyId フィールドに配置して、ダウンロードした .config ファイルを更新し、「必須」オプションに「false」を設定して必須オプションを無効にし、「有効」オプションに「false」を設定して LDAP サーバーを無効にします。 完了したら、構成ファイルをこの場所 {LIFERAY_HOME}/osgi/configs/ 内に配置して、ポータルにログインせずに LDAP を変更します。

ご参考までに: 構成ファイル(com.liferay.portal.security.ldap.authenticator.configuration.LDAPAuthConfiguration-1b6b062e-3ed6-429e-90bc-3bd919d20fb5.config)とその内容。

companyId = L"35449"
enabled = B"false"
method="bind"
passwordEncryptionAlgorithm="NONE"
passwordPolicyEnabled = B"false"
required = B"false"

追加情報

  • これは状況を回避するための回避策であり、ケースバイケースであることに注意してください。
  • Liferay は、シームレスなログインのために、LDAP サーバーと Liferay の間に具体的な接続を提供することを強くお勧めします。
did-this-article-resolve-your-issue

legacy-knowledge-base