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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:05:06+00:00 2026-05-16T18:05:06+00:00

Precondition : There’s a web application that leverages ASP.NET security model. There’s also an

  • 0

Precondition: There’s a web application that leverages ASP.NET security model. There’s also an Active Directory (AD) integration component. It provides AD users and roles as if those are application’s own users and roles. The relations like “is in role” between AD user and AD role are stored in AD domain, of course, but are cached by the web application.

Problem: Let’s say AD user1 is a member of AD role1. When web application starts, it caches this relation. Now if the AD administrator removes user1 from role1 using AD console, the application doesn’t know about this change – the cache entry is kept. This becomes a security hole because the role1 might have permissions the user1 should no longer have.

There are two сcontrary opinions how to solve this:

  1. “Listen” to AD changes and trigger cache entry removal once the operation is detected on AD server – because we are responsible for correct AD component functioning
  2. Leave the cache untouched – because we didn’t put the entry there and should not remove it either

What’s the right way to go in this case? And why?

Thank you!

  • 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-16T18:05:06+00:00Added an answer on May 16, 2026 at 6:05 pm

    I think it should be the responsibility of the implementer of the component that uses a caching mechanism.

    In many cases, some latency in propagation of changed permissions might be acceptable.
    So a cache entry that uses a reasonably small absolute timeout might be acceptable.

    If such latency is not acceptable, then caching is probably not appropriate anyway.

    The implementor of the caching mechanism ought to document this. If I was doing it, I’d have a documented configurable absolute timeout, so that administrators could judge how much latency is acceptable, and could disable the cache altogether. I might also provide an API or UI that enables an administrator to manually clear the cache.

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

Sidebar

Related Questions

I'm attempting to configure ELMAH error logging in an ASP.NET 4 application using SQL
First of all there are plenty of articles on the net for this but
There are a lot of manuals in the web about this validating procedure. In
I found inconvenient that checkNotNull() precondition in guava is not marked with @Nonull annotation.
The idea is to create a DOM-like tree. But there are some restrictions, that
I have an IEnumerable parameter that is required to be non-empty. If there's a
I am implementing a RESTful web service that accesses a database. Entities in the
I understand that I cannot add preconditions on an interface implementation. I have to
I am writing a small website. There is PHP session based authorization. What HTTP
I've recently migrated a lot of manual precondition testing and exception throwing with code

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.