AurorisNet.ActiveDirectory 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AurorisNet.ActiveDirectory --version 1.1.0
                    
NuGet\Install-Package AurorisNet.ActiveDirectory -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AurorisNet.ActiveDirectory" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AurorisNet.ActiveDirectory" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AurorisNet.ActiveDirectory" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AurorisNet.ActiveDirectory --version 1.1.0
                    
#r "nuget: AurorisNet.ActiveDirectory, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AurorisNet.ActiveDirectory@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AurorisNet.ActiveDirectory&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AurorisNet.ActiveDirectory&version=1.1.0
                    
Install as a Cake Tool

AurorisNet.ActiveDirectory

Windows-only wrappers around System.DirectoryServices for .NET 10, providing ADUser, ADGroup, ADComputer, ADPrinter and directory-search helpers in the ActiveDirectory namespace.

Install

dotnet add package AurorisNet.ActiveDirectory

This package is also installed automatically by AurorisNet.IdentityServer. The library assembly remains ActiveDirectory.dll. Its directory operations require Windows and appropriate directory access.

Read a user

Run on Windows with an account that has access to the directory. Replace the example domain and account name with your own:

using System;
using ActiveDirectory;

using var user = new ADUser(@"EXAMPLE\alice");
Console.WriteLine(user.DisplayName);
Console.WriteLine(user.Email);

ADUser accepts a SAM account name, a DOMAIN\user name or a full LDAP:// path. Dispose wrappers after use to release any directory connections they own.

For searches, use DirectorySearch with an LDAP root to scope results. Request needed attributes in PropertiesToLoad; other attributes read as empty until you call Bind() on the returned wrapper. PageSize enables paging and Find<T>(howMany) limits results.

For OpenID Connect hosting, install AurorisNet.IdentityServer. Its portable LDAP providers use System.DirectoryServices.Protocols for Active Directory, Samba AD and FreeIPA on Windows or Linux.

Documentation and support

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AurorisNet.ActiveDirectory:

Package Downloads
AurorisNet.IdentityServer

Embeddable OpenID Connect server for ASP.NET Core, backed by Active Directory, Samba AD or FreeIPA.

AurorisNet.IdentityServer.Directory

Active Directory people and group lookup for address books and people pickers: escaped, bounded searches, account lookups by SID, GUID or DOMAIN\user, and group listings, with application-supplied filters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 44 11/19/2026
1.2.0 101 11/18/2026
1.1.1 107 11/16/2026
1.1.0 85 11/16/2026
1.0.1 114 11/1/2026