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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:07:32+00:00 2026-05-12T10:07:32+00:00

I was demonstrating my WPF application to a customer and he asked me if

  • 0

I was demonstrating my WPF application to a customer and he asked me if I have LDAP or can integrated with Active Directory (AD).

My application has its own in-build user security and data access security. I use my security framework to authenticate and give rights on screen and data access. The client asked me if I could add or integrate with active directory. He need the user to just remember his Windows password and not of my application.

I could implement Active Directory logic but then I have to modify my application to associate an Active Directory user with my application’s users so when the AD user logs in then he is authenticated and associated as my local user since the local user need to be associated with his security and data access settings. Is this the way to go?

I will be using .NET 3.5 classes for this etc. This would mean the administrator of my application should go to the user screen and associate the local user with the LDAP user also.?

  • 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-12T10:07:32+00:00Added an answer on May 12, 2026 at 10:07 am

    No, I don’t think what you are proposing sounds like the right thing to do.

    Rather, you should base security on a pluggable architecture (e.g. IPrincipal), and then have some way your application can be configured to use either your own security framework or simply WindowsPrincipal (that derives from IPrincipal):

    You could, for example, have a configuration setting that specifies which security provider to use. If configured to use your own system, it’s going to ask the user for credentials and populate Thread.CurrentPrincipal with an instance that is based on your system.

    If configured to use AD, it’s just silently going to set Thread.CurrentPrincipal to WindowsIdentity.GetCurrent() (wrapped in a WindowsPrincipal).

    Take a look at how ASP.NET or WCF deals with security – that’s basically what they do.

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

Sidebar

Related Questions

We have recently developed an iPad application and now need to start demonstrating it
You can find the source code demonstrating this issue @ http://code.google.com/p/contactsctp5/ I have three
I have an OpenGL example I wrote years ago demonstrating the lense effect using
I have a requirement to produce a prototype (running in a J2EE compatible application
I have been looking for tutorials demonstrating how to share a C++ object with
For learning and demonstrating, I need a macro which prints its parameter and evaluates
Two questions in one, but I have a very short test case demonstrating my
Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?
Does anyone have some sample code demonstrating how to make a file browser view?
I'm looking for an example demonstrating how I can encode and then decode 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.