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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:37:10+00:00 2026-06-04T01:37:10+00:00

I am trying to setup an LDAP LoginModule (using BrowserLdapLoginModule ). The user/password is

  • 0

I am trying to setup an LDAP LoginModule (using BrowserLdapLoginModule). The user/password is correctly; it retrieves the roles from the user but when it tries to extract the CN value it cannot find the values.

I have followed the process, and in the end the failure is that I get a javax.naming.NameNotFoundException in the following line

NamingEnumeration roleAnswer = ctx.search(searchBaseDN, roleFilter, roleconstraints);

with the following values (doble quotes not included):

  • searchBaseDN(String) = “OU=Roles,DC=siafake,DC=aplssib”
  • roleFilter(String) = “(distinguishedName=CN=Urgencias,OU=Roles,DC=siafake,DC=aplssib)”
  • derefRoleAttribute(String[] = { “cn” };

With that data, I expect the search to return me Urgencias, yet I only get the exception. It is not a permissions issue, since with the same user/password I can browse the LDAP tree without problem.

Any idea / suggestion? Thanks in advance.

LDAP capture

  • 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-04T01:37:12+00:00Added an answer on June 4, 2026 at 1:37 am

    Ok, here is the answer that I found (also, some clarifications to the comments from Terry Gardner comments)

    My sysadmins gave me user A (“system” user, that can connect and browse the LDAP). The user that will connect to my application would b user F (final user). When asked about samples to configure my jboss, they redirected my to the BrowserLdapModuleLogin (BLML).

    Turns out, BLML works by doing an initial connection with user A, for retrieving user F data (full LDAP “name”).

    After that, a new connection is setup using user F connection data to validate user/password and retrieve the groups (memberOf attribute) to which it belongs. Until this point, all works as it should (at least with our setup).

    The trouble began when I did setup the option to just get the “CN” value (instead of CN=value,OU=organization....). By setting up this option, the module tries again to login as user F into the roles tree to get the attribute. But it happens that F does not have permissions to do so.

    As the module was provided by our IT people and I am new to LDAP, I assumed I was just setting up something wrong, and I did not want to change anything in the code. In the end, it happens that in the system that uses it, this module was used only for authentication; the roles were extracted from another DB and I have been forced to code around this issue.

    Sorry for the annoyances…

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

Sidebar

Related Questions

i`m trying to setup LDAP user authentication with openldap for the page accesible at:
I'm trying setup costum storege. Looks like all is ok. But there is the
I'm trying to setup a loop in Wordpress that will show all posts from
I am trying to setup my Eclipse for Hadoop using this page I am
I'm trying to lookup a user on a local active-directory using java. When I
I'm trying setup a subset of boost and get it properly compiled using bjam,
I'm trying to setup CruiseControl.net at the moment. So far it works nice, but
I'm playing around with LDAP and I'm trying to setup an ldap server that
Trying to setup SSL on jetty 7.2.2 using these instructions: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL stuck on 3b:
I m trying setup a cassandra cluster as a test bed but gave the

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.