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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:18:27+00:00 2026-05-10T14:18:27+00:00

I writing a web site that uses Active Directory to validate users. I don’t

  • 0

I writing a web site that uses Active Directory to validate users. I don’t have access to an Active Directory instance that I can edit in any way.

I’ve heard that some people are using Active Directory Application Mode (ADAM) to create AD data to be used in Unit and Integration Testing.

Has anyone else done this? Are the any good site/blog that tells how to do this? What are the issues? Is this even a good idea?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T14:18:27+00:00Added an answer on May 10, 2026 at 2:18 pm

    I don’t think this is a good idea just like reading files or accessing the database in unit tests isn’t a good idea. Your tests will become dependent on the state of an external piece of software. Or you will have a lot of setup and teardown code. If you write tests this way you can expect you’ll spend a lot of extra time maintaining your test-code. Setting up and maintaining a build server will become harder too and setting up the development environment for new programmers will take more time.

    The way to go in cases like this is to set up an adapter class around the infrastructure for calling into AD and to use something like rhino-mocks or another mocking framework to setup a mock-active-directory in your tests. If you’re not familiar with mocking it sounds like a lot of work. But in practice it’s usually only a couple of lines of code per test.

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

Sidebar

Related Questions

I'm writing a web site that uses multiple web services with throttle restrictions. I.e.
I'm writing an ASP.NET C# web site that needs to access data from a
So I got a site that uses ISO-8859-1 encoding and I can't change that.
I'm writing an application updater that pulls installation package from our distribution web site
I've just made some fixes to a web site that uses the Form2Mail PHP
I am in the process of writing a web-app that uses multiple web APIs.
I have a PHP based website that uses coupon codes. I can restrict search
I’m writing a web site targeted at the iPhone. I’d like to set a
I'm writing a web site (C#, ASP 3.5) while implementing a simple CMS. In
Writing the code for the user authentication portion of a web site (including account

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.