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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:17:47+00:00 2026-06-16T16:17:47+00:00

How do I configure a Shiro to use Active Directory Authentication, but in addition

  • 0

How do I configure a Shiro to use Active Directory Authentication, but in addition I want to map the usernames to custom roles. I can’t seem to find any information on this. Can anyone give me any pointers?

  • 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-16T16:17:49+00:00Added an answer on June 16, 2026 at 4:17 pm

    To do Active Directory Authentication use the JndiLdapRealm

    For the authorization override the method queryForAuthorizationInfo

    Be aware that you probably get group from your AD so you have to provide your own mapping (group to role).

    About this shiro reference manual say :

    A RolePermissionResolver can be used by a Realm internally when needing to translate a role name into a concrete set of Permission instances.

    This is a particularly useful feature for supporting legacy or inflexible data sources that may have no notion of permissions.

    For example, many LDAP directories store role names (or group names) but do not support association of role names to concrete permissions because they have no ‘permission’ concept. A Shiro-based application can use the role names stored in LDAP, but implement a RolePermissionResolver to convert the LDAP name into a set of explicit permissions to perform preferred explicit access control. The permission associations would be stored in
    another data store, probably a local database.

    Hope this will help

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

Sidebar

Related Questions

How can I use configure and make tools to specify to use 64 bit
Can I configure IntelliJ on Windows to use Ctrl + Tab for switching between
How do I configure my application so AutoMapper can map to internal types and/or
My configuration: app.configure(function(){ app.set('views', __dirname + '/views'); app.set('view engine', 'jade'); app.use(express.bodyParser()); app.use(express.cookieParser()); app.use(express.session({ secret:
I'm trying to configure a PHP installation (5.4.3) with MYSQL (5.0.91) for use with
I can find plenty of examples that show how to configure a URL to
I integrated Apache Shiro with a dummy user and it works just fine! But
I configure my web application to use SSL using my own self signed certificate.
How do I configure my website to use either test or release configuration when
I want to configure my mail-service.xml to send emails from my Gmail account. 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.