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.


  • 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.
  • Install Apps From Google Search Results Without Opening The Play Store

    The new feature allows users to install and download apps directly from the search result, without opening the Play Store.
  • 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 foundatio...
  • 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 mys...
  • 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...
  • 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 y...
  • 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 a...
  • ALL Operations on Active Directory (AD) using c#

    This article will explain how to perform operations on Active Directory (AD) using C#. In this step-by-step tutorial, I will build a class library (DLL) project that will perform all the AD Operat...
  • 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 e...
  • 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 direct...
  • .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 ...
  • 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...