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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:38:09+00:00 2026-05-27T22:38:09+00:00

In tomcat the container security can be enabled by using JNDIRealm for certain roles

  • 0

In tomcat the container security can be enabled by using JNDIRealm for certain roles defined in LDAP. Can a similar objective be achieved by using only Apache HTTP Web Server and without a container like Tomcat/JBoss/Glassfish.

  • 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-27T22:38:10+00:00Added an answer on May 27, 2026 at 10:38 pm

    Found solution to this one.

    If you have to configure Apache to authenticate against LDAP similar to JNDIRealm in Tomcat, following needs to be configured in Apache web server. Once this is done, only people in group Application.Users will have to access to application!

    <VirtualHost 10.199.137.19:80>
    ServerName application.company.com
    ServerAlias app
    <Location /> 
    AuthName "Restricted Access"
    AuthType Basic 
    AuthBasicProvider ldap file
    AuthzLDAPAuthoritative on 
    AuthLDAPBindDN anonymous 
    AuthLDAPURL ldap://ldap.company.com:3268/DC=ad,DC=company,DC=com?SamAccountName?sub?   (objectCategory=*)
    Require ldap-group cn=Application.Users,OU=Application,OU=Groups,DC=ad,DC=company,DC=com
    Require valid-user  
    AuthUserFile "/company/apps/apache/conf/wtpasswd"
    </Location>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Tomcat 5.5 as my servlet container. My web application deploys via .jar
I am writing a Java servlet, using Tomcat as the container, which creates and
I develop a web application using eclipse, maven and tomcat container. My web app
I am using Apache DBCP with JNDI in my tomcat container to pool connections
With servlets/jsp, can sessions be recycled by the web container (say tomcat), depending on
I am using JSF2+CDI in a Tomcat 7 Container. I found a strange problem,
I am using Tomcat web container. I have an admin console app implemented. When
The server.xml which controls the startup of Apache Tomcat's servlet container contains a debug
I have a number of war projects deployed in a single tomcat 5.5 container.
We use Tomcat to host our WAR based applications. We are servlet container compliant

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.