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 8165123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:27:57+00:00 2026-06-06T19:27:57+00:00

When using JAAS, is there any way to specify the attributes returned by the

  • 0

When using JAAS, is there any way to specify the attributes returned by the role (group) search query?

The group returned has about 100k entries in the uniqueMember attribute which is saturating the link between the app server and OpenLDAP. Since the query only needs the cn attribute, I’d like to tell the container to only request that when performing the search.

Currently, the query does not set any attributes to be returned, which returns all of them.

The DEV (Jetty) java.security.auth.login.config looks like this

devldap {
   org.eclipse.jetty.plus.jaas.spi.LdapLoginModule required
   debug="true"
   contextFactory="com.sun.jndi.ldap.LdapCtxFactory"
   hostname="ldap-dev.example.com"
   port="389"
   bindDn="cn=Manager,dc=example,dc=com"
   bindPassword="xxxx"
   authenticationMethod="simple"
   forceBindingLogin="true"
   userBaseDn="ou=users,dc=example,dc=com"
   userRdnAttribute="uid"
   userIdAttribute="uid"
   userPasswordAttribute="userPassword"
   userObjectClass="inetOrgPerson"
   roleBaseDn="ou=groups,dc=example,dc=com"
   roleNameAttribute="cn"
   roleMemberAttribute="uniqueMember"
   roleObjectClass="groupOfUniqueNames";
   };
  • 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-06-06T19:27:59+00:00Added an answer on June 6, 2026 at 7:27 pm

    Something seriously wrong there. It shouldn’t be returning the group entry attributes at all, only the CN.

    This looks like a major bug in org.eclipse.jetty.plus.jaas.spi.LdapLoginModule. It should set the returningAttributes property of the SearchControl to new String[]{_roleNameAttribute} in getUserRolesByDn(). You need to report it, and/or patch it yourself.

    If you’re using OpenLDAP you could consider using the memberOf overlay. This gives the user himself an attribute listing all the groups he is a member of. However it isn’t retrospective, and as you already clearly have a large directory you would have a job on your hands to populate it from existing groups. The overlay will auto-maintain it once installed, but only for group updates that take place after it’s installed.

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

Sidebar

Related Questions

Using android 2.3.3, I have a background Service which has a socket connection. There's
My webapp has a CLIENT_CERT based JAAS authentication. I am using IE7. When I
I have an application set up using jaas module for login. There are ajax
I'm using JAAS to secure my web-application. As the title says, the problem is
Using SQL Server 2008 R2 we are looking for a way to select the
using a binary search tree I need to add to a vector all int
Hi i have secured my server using JAAS and i have performed the web
When using JAAS JDBCRealms with Tomcat, I usually define the realm in server.xml .
I'm using jsf 2 + jaas + ssl + tomcat 6.0.26 I have in
I'm using JAAS and have applied security on some folders for different roles. I

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.