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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:48:30+00:00 2026-05-30T02:48:30+00:00

I have an app that contains configuration settings that should be changed only by

  • 0

I have an app that contains configuration settings that should be changed only by a user that is part of the MyAdvancedUsers Active Directory group. This application is a C# .NET 4.0 desktop application (not a web application)

When the app is running with regular user permissions, is it possible to allow access to the configuration settings form by a member of the MyAdvancedUsers by having the advanced user enter his/her windows username and password combination?

  • 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-30T02:48:33+00:00Added an answer on May 30, 2026 at 2:48 am

    It’s fairly simple to do this. Create a PrincipalContext and call ValidateCredentials() on it, thusly:

    bool ValidateCredentials(String domain, String user, String password) {
      using (PrincipalContext principal = new PrincipalContext(ContextType.Domain, "THE DOMAIN GOES HERE")   
      {
        return principal.ValidateCredentials(user, password);
      }
    }
    

    Try this site for a good way to capture the credentials from the user.

    @Kitsune: you do not need to elevate privledges just to validate a user’s credentials.

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

Sidebar

Related Questions

I have a (custom) php framework that contains following structure: app |-classes |-settings core
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
I have a D2006 app that contains a page control and various grids, etc
I have an iPad app that contains a webview. The webview's page has a
I have a WinForms app that contains several comboboxes, numericupdown controls and checkboxes. I
I have an iPhone app that has a relatively simple Flurry configuration installed. I
I have an app that contains top level folder with subfolders in the app's
I have an MFC sdi app that uses a splitter window to contain a
have an app that finds your GPS location successfully, but I need to be
Have an app that has listings - think classified ads - and each listing

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.