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

  • Home
  • SEARCH
  • 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 995471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:43:41+00:00 2026-05-16T06:43:41+00:00

LDAP authentication in different J2EE servers is different, unfortunately. Eg. If I develop a

  • 0

LDAP authentication in different J2EE servers is different, unfortunately.

Eg. If I develop a code in JBoss for LDAP authentication with LDAP login module of JBoss, 99% chances are that it will not run in WebSphere or any other J2EE containers. Maybe if I import that library jar files, it might work. I’m looking at just porting the application and not having to worry about library files, unless we have written the libraries. Libraries of J2EE servers must not be copied from one server to the other. I don’t know if that could be called code ethics!!

Is there a J2EE server independent module for LDAP or way of programming for doing this?

Is the solution – code from scratch using JNDI the only method? Please advice.

  • 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-16T06:43:43+00:00Added an answer on May 16, 2026 at 6:43 am

    I’d suspect that most J2EE container already have an LDAP module for the authentication, in which case the problem you’re having isn’t really about programming, but about adapting the configuration from one container to another. Little to no actual code should be required for this. It’s not clear why you would develop your own code for LDAP authentication then.

    If you really want this configuration to be container independent, you’ll certainly need to embed the authentication within the webapp itself.
    The Restlet framework, for example, can do that, but it’s part of a wider architectural choice, which may or may not be what you’re after.

    Even if you program your own LDAP code via JNDI or JAAS for example, you’re likely to have to tweak the configuration of the container, perhaps for its security manager to let the connections to your LDAP server through (if enabled) or at least to configure which LDAP server to use when deploying the application.

    I think in the general case, it’s probably wiser to use the container’s module (which will vary depending on the container). It ultimately depends on how you configure your webapps when deploying them.

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

Sidebar

Ask A Question

Stats

  • Questions 493k
  • Answers 493k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The examples provided with Pyparsing include several expression parsers: https://github.com/pyparsing/pyparsing/blob/master/examples/fourFn.py… May 16, 2026 at 10:53 am
  • Editorial Team
    Editorial Team added an answer Found myself. May 16, 2026 at 10:53 am
  • Editorial Team
    Editorial Team added an answer They mean ignore as in you the human ignoring them,… May 16, 2026 at 10:53 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I'm using Apache Geronimo as my application server. And authentication is happening over LDAP
The code I am using: # Create LDAPObject instance conn = ldap.initialize(url) conn.protocol_version=ldap.VERSION3 conn.simple_bind_s(binddn,bindpw)
I'm working on a CakePHP project and am currently building the user authentication part
Here's my situation... I'm writing a .Net/C# security system (authorization and authentication) for a
I'm trying to come up with a good way to do authentication and authorization.
Brand new to django. We have a legacy django project using django 0.96x that
ASP.NET Login control is very slow making the initial connection to AD when authenticating
I am new to LDAP and JNDI. I have setup a LDAP server with
I'm looking for some architecture ideas on a problem at work that I may
I want to run this function, or at least the bit that deletes 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.