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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:41:35+00:00 2026-05-24T15:41:35+00:00

We have a Spring MVC application. We now have to integrate spring security in

  • 0

We have a Spring MVC application. We now have to integrate spring security in it.

The authentication can be done using either database or using LDAP.

We will a have a configuration setting either in a properties file or a database to decide which authentication to use i.e. if the user should be authenticated against a database or a LDAP.

At any given time there will be only one type of authentication.

e.g. A company test1 can have a database authentication and another company test 2 can have ldap authentication.

  • 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-24T15:41:35+00:00Added an answer on May 24, 2026 at 3:41 pm

    Some ideas:

    1. If each client is deployed separately with its own configuration, configure the DAO and LDAP authentication in 2 different XML files. At build time, choose which one you want to use and bundle it in your WAR.
    2. If there is only 1 WAR, maybe try including both XML files in the WAR, and set a system property using -Dmyprop=foo (o some other way) when starting up the app. Then, in your Spring config, include the appropriate config file using ${myprop} so that the correct file is called and used.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Spring MVC to build my web application, and I have a
I am using Spring Web MVC for my application. I have 1 dropdown list
I am writing a Spring Restful webservices application using Spring MVC. I have used
I have a spring mvc application and I am rendering some pdfs using classes
We have a Spring web application created using Spring MVC 3.0 In the same
I have a web application secured with spring security (Spring 3.1.0). Now if a
I am prototyping a web application using Spring MVC 3.0 with JasperReports. I have
I'm working on a reporting web application using JasperReports and Spring MVC. Now, i
I am using spring mvc 3.0 to build an web application. User can get
I have a Spring MVC application trying to use a rich domain model, with

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.