AurorisNet.ActiveDirectory
1.1.0
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
<PackageReference Include="AurorisNet.ActiveDirectory" Version="1.1.0" />
<PackageVersion Include="AurorisNet.ActiveDirectory" Version="1.1.0" />
<PackageReference Include="AurorisNet.ActiveDirectory" />
paket add AurorisNet.ActiveDirectory --version 1.1.0
#r "nuget: AurorisNet.ActiveDirectory, 1.1.0"
#:package AurorisNet.ActiveDirectory@1.1.0
#addin nuget:?package=AurorisNet.ActiveDirectory&version=1.1.0
#tool nuget:?package=AurorisNet.ActiveDirectory&version=1.1.0
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
| Product | Versions 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. |
-
net10.0
- System.DirectoryServices (>= 10.0.14)
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.