Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing with(out) Active Directory

I'm working on a project where some parts of the system rely on Active Directory. However, I'm at the client's office, where I cannot access their AD(Red tape).

Is there a way to mock AD while I develop?

I'm developing in C# and .NET

like image 322
Niel de Wet Avatar asked Jan 04 '13 10:01

Niel de Wet


People also ask

What is the alternative to Active Directory?

JumpCloud is a Better Alternative to Active Directory Users enjoy seamless access to their system (Windows, Mac, and Linux), local and remote servers (AWS, GCP etc.), LDAP and SAML based applications, physical and virtual file storage, and VPN and WiFi networks via RADIUS.

Is Active Directory necessary?

It's also necessary for managing security authentication because only authorized users (stored in AD as objects) can log on to network computers. Here are some of the benefits of using AD: With Active Directory, it's easy to create and delete user accounts or add another resource to the network.

Is Azure replacing Active Directory?

Unfortunately, the short answer to that question is no. Azure AD is not a replacement for Active Directory.

What happens if Active Directory fails?

Active Directory (AD) failure, which includes corruption, is something that is dreaded by any administrator. Simply put, it means that the directory service can no longer read the Active Directory database that it has locally. This will prevent logon and authentication as well as any directory-dependent services.


2 Answers

our service needs to query the AD for user groups and email addresses

Another option then would be to implement the AD access with the repository pattern and have at least two implementations.

public interface IRepository 
{
    IEnumerable<Something> GetUsers();
}

public class ActiveDirectoryRepository : IRepository ...

public class AnotherRepository : IRepository ...

This way you could easily switch to required implementation at the deployment time - you develop against database, xmlfiles, memory, anything but the deployed application talks to the AD - because you code against the repository interface, you just reconfigure the application and have ZERO changes in the code.

like image 169
Wiktor Zychla Avatar answered Oct 06 '22 12:10

Wiktor Zychla


You could use Active Directory Lightweight Directory Service (used to be called ADAM). This allows you to setup a multi-user AD environment.

http://blogs.technet.com/b/askds/

like image 41
Quinton Bernhardt Avatar answered Oct 06 '22 12:10

Quinton Bernhardt