Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:32:33+00:00 2026-05-25T01:32:33+00:00

What is the difference b/n memberOf attribute and groupMembership attribute when used in LDAP

  • 0

What is the difference b/n memberOf attribute and groupMembership attribute when used in LDAP Authentication settings in Liferay?

The users are imported successfully.
The groups are also imported successfully.

But the users are not assigned to the groups automatically. And when I changed the group variable from ‘groupMembership’ to ‘memberOf’, several users are not able to login to Liferay.

What exactly are memberOf and groupMembership variables?

LDAP Liferay Settings

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:32:34+00:00Added an answer on May 25, 2026 at 1:32 am

    memberOf is not a “variable”, it is an attribute, or more accurately, it is a virtual attribute, or a dynamic attribute generated on the fly by some directory servers, but not all. Some use memberOf to use in search filters or in the attribute list of a search request, some use isMemberOf for the same purpose, some support both or neither, and there are probably other idioms of which I am not aware.

    Generally speaking, to determine group membership, issue a search request to the directory server and specify memberOf or isMemberOf to be returned in the attribute list. Here is an example using a modern ldapsearch command line tool:

    ldapsearch --port 1389 --baseDn 'ou=people,dc=example,dc=com' \
         --sizeLimit 3 --searchScope one --bindDn 'cn=directory manager' \
         --bindPasswordFile ~/.pwdFile '(uid=user.0)' isMemberOf
    dn: uid=user.0,ou=people,dc=example,dc=com
    isMemberOf: cn=Dynamic Home Directories,ou=groups,dc=example,dc=com
    isMemberOf: cn=bellevue,ou=groups,dc=example,dc=com
    isMemberOf: cn=shadow entries,ou=groups,dc=example,dc=com
    isMemberOf: cn=persons,ou=groups,dc=example,dc=com
    

    This search response indicated that user.0 is a member of the listed groups.

    To reverse the sense of the query, that is, to determine which entries are the member of a group, use the isMemberOf or memberOf with an assertion in the filter used in the search request:

    ldapsearch --port 1389 --baseDn 'ou=people,dc=example,dc=com' \
       --sizeLimit 3 --searchScope one --bindDn 'cn=directory manager' \
       --bindPasswordFile ~/.pwdFile \
      '(isMemberOf=cn=persons,ou=groups,dc=example,dc=com)' 1.1
    dn: uid=terrygardner,ou=people,dc=example,dc=com
    
    dn: uid=user.0,ou=people,dc=example,dc=com
    
    dn: uid=user.1,ou=People,dc=example,dc=com
    
    dn: uid=user.10,ou=People,dc=example,dc=com
    

    This search response indicates that there are several member of the group whose distinguished name is cn=persons,ou=groups,dc=example,dc=com.

    While not specific to LifeRay, the above is a general explanation of one way to deal with group membership and also of reverse group membership from an LDAP perspective.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a website. It has groups that users can join. The difference between
The difference between Chr and Char when used in converting types is that one
I have some code that retreive the users present in different groups in Active
What's the difference between the IN and MEMBER OF JPQL operators?
Difference between start-pointers and interior-pointers and in what situation we should prefer one over
What difference does it make when I use a const parameter in a procedure?
Any difference, performance-wise?
The difference of InputStream DataInputStream and BufferedInputStream in java?
What's the difference between CopyIcon and DuplicateIcon ?
Is there any functional difference in Python between a try statement and an if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.