Active Directory
Welcome to Active Directory section of C# Corner. In this section, you will find various Active Directory related source code samples, articles, tutorials, and tips using C# language.


  • The Difference Between Azure Active Directory And Windows Active Directory

    This blog briefly explains the differences between the Windows Active Directory and Azure Active Directory.
  • Changing User Information using Active Directory

    If your company is one of the lucky? Ones to implement Windows 2000 Active Directory you may have been looking for a way to populate it with data. Perhaps adding people’s details from a file directly
  • Fixing Active Directory Error Logon Failure - Unknown User Name Or Bad Password

    Fixing System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): Logon failure: unknown user name or bad password.
  • Active Directory Filter Builder

    AD Filter Builder is the tool for building up the LDAP query for easy searching.
  • Active Directory Authentication

    By using this, we can implement the LDAP\domain authentication. For that need to change the Server Address and port name in Web.config/app.config file.
  • Azure AD Admin Console Now Generally Available

    The new Admin Console of Microsoft Azure Active Directory is now generally available.
  • Getting Users From Active Directory

    In this post, we will fetch Active Directory users using C# code. For this, all we need are Active Directory assemblies.
  • Configuring Active Directory to Meet Compliance Requirements

    In this blog we will learn how to configure Active Directory to meet regulatory compliance requirements.
  • Accessing the Active Directory From Microsoft .NET

    This article is intended to explain the architectural design of an application querying the Microsoft Active Directory. Microsoft Active Directory is a directory service that provides the foundation for distributed networks built on Windows.
  • Learn About Date Picker in Android

    This article explains the Date Picker in Android. Android Studio is used to create the sample.
  • Forms Authentication with Active Directory

    This article and sample code explains how you can take advantage of Active Directory in Web applications for authenticate and authorize the Web site users.
  • Active Directory and .NET

    Microsoft Technet offers a script repository to work with AD User Accounts; however, I needed to work with .NET and I could not find samples for all the tasks I needed to program. I promised to myself that one day I would publish the code samples I found and created to help other developers who are working with Directory Services.
  • Integrated Security with Web Application

    This article will give you an idea about how Integrated Security works with Web Application using Active Directories.
  • Authenticate a user against the Active Directory

    This article serves as a guide to using System.DirectoryServices (SDS) ADSI to access user and group in the Windows Active Directory. Authenticate a user against the Active Directory using the user ID and password.
  • Integrating LDAP Active Directory into your .Net Web Portal (C# or VB.NET)

    This article will guide you through the best practices and method of using LDAP Active Directory as your user store for credentials and account information in your web applications or portal that you will develop in C# or VB.Net.
  • Create User In Active Directory and Maill Box in Exchange Server

    This explains how to create a Active directory users and how to create the mail box for the Active directory users on Exchange Server 2007. It also explains how to disable the mail box for a user and how to remove a user from the mail box as well in the Active Directory Using C# Coding.
  • Using Expression Property to create Columns with Dynamic Values

    This article shows how to create columns with dynamic values using expression property.
  • C# Asynchronous Multi-Threaded Active Directory User/Group Browser

    I was working on a win forms project that queries Active Directory information for user and group information and thought the approach may be of interest to some c-sharpcorner readers as a simple example of a asynchronous multi-threaded win forms application.
  • .NET and Active Directory

    This article outlines connecting to AD from .Net using ADO and System.DirectoryServices and also forming a unique ID from AD, moving entries from AD to a database and forming AD queries (also date formatting for AD).
  • LDAP Access Control for ASP.Net

    This is an example of how to build an ASP.NET LDAP authentication application using ADAM. This article describes how to configure ADAM for regular LDAP communication and build a boilerplate ASP.NET application on top of it.
  • Working with System.IO.Directory Class in C#

    This article is focused on understanding the Directory class of System.IO namespace.
  • Handling new line and carriage return with Textbox

    This article shows how to handle newline and carriage return with Textbox while working with Databases.
  • Active Directory and Microsoft .NET

    This article will emphasize in the benefits of using the namespace System.DirectoryServices.
  • View More