legacy-knowledge-base
公開されました Sep. 10, 2025

Active Directory の特定のグループからユーザーをインポートして認証する

written-by

Emma Liu

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Microsoft Active Directory (AD) からすべてのユーザーをインポートして認証する代わりに、AD の特定のグループのユーザーのみをインポートして認証したいと考えています。

環境

  • Liferay DXP 7.3

解像度

  1. Authentication Search Filterで、次のようにフィルタを指定します。
    (&(objectCategory=person)(mail=@email_address@)(memberOf=cn=$Group_name,dc=mydomain,dc=com))

    複数のグループの場合、フィルターは次のようになります。
    (&(objectCategory=person)(|(memberOf=cn=$Group1_name,dc=mydomain,dc=com)(memberOf=cn=$Group2_name,dc=mydomain,dc=com)))
  2. Groups > Import Search Filterで、次のようにフィルターを指定します。
    (&(objectClass=person)(memberOf=cn=$Group_name,dc=mydomain,dc=com))

    複数のグループの場合、検索フィルターを次のように変更します。
    (&(objectClass=person)(|(memberOf=cn=$Group1_name,dc=mydomain,dc=com)(memberOf=cn=$Group2_name,dc=mydomain,dc=com)))

追加情報

  • 「$Group_name」、「$Group1_name」、「$Group2_name」は、AD のグループ名に変更する必要があります。
  • グループ名に特殊文字 (# など) が含まれている場合、認証検索フィルターで特殊文字を次のように「\\」でエスケープする必要があります。
    (&(sAMAccountName=@screen_name@)(|(memberOf=cn=\\#group1,ou=groupTest,dc=mydomain,dc=com)(memberOf=cn=\\#group2,ou=groupTest,dc=mydomain,dc=com)))
  • [LDAP ユーザーのテスト] をクリックすると、セキュリティ グループが定義されているユーザーのみが一覧表示されます。
  • memberof 属性では、ワイルドカードはサポートされていません。 詳細は こちら.
did-this-article-resolve-your-issue

legacy-knowledge-base