SplatDev.Directory 1.0.2

dotnet add package SplatDev.Directory --version 1.0.2
                    
NuGet\Install-Package SplatDev.Directory -Version 1.0.2
                    
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="SplatDev.Directory" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Directory" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Directory" />
                    
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 SplatDev.Directory --version 1.0.2
                    
#r "nuget: SplatDev.Directory, 1.0.2"
                    
#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 SplatDev.Directory@1.0.2
                    
#: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=SplatDev.Directory&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Directory&version=1.0.2
                    
Install as a Cake Tool

SplatDev.Directory

Directory service abstraction for Umbraco plugins. Defines one contract — IDirectoryProvider — that Active Directory, a generic LDAP server and Entra ID all answer, so a plugin can look people up without knowing which of them a site runs.

Compatibility

Umbraco Target
13 net8.0
17 net10.0

Installation

Install this package and at least one provider:

dotnet add package SplatDev.Directory
dotnet add package SplatDev.Directory.Ldap      # Active Directory or generic LDAP
dotnet add package SplatDev.Directory.EntraId   # Entra ID via Microsoft Graph
builder.Services.AddSplatDirectory(builder.Configuration);
builder.Services.AddSplatLdapDirectory();
builder.Services.AddSplatEntraDirectory();

Both providers can be registered at once. Each reports itself unconfigured until a site supplies its settings, and IDirectoryProviderResolver picks whichever is usable.

Configuration

{
  "Directory": {
    "Enabled": true,
    "DefaultProvider": "Active Directory",
    "AllowUserCreation": false,
    "CreateUsersInOrganizationalUnit": "OU=Staff,DC=example,DC=com",
    "Ldap": {
      "Host": "dc01.example.com",
      "Port": 636,
      "UseSsl": true,
      "BaseDn": "DC=example,DC=com",
      "BindDn": "CN=umbraco-reader,OU=Service,DC=example,DC=com",
      "Domain": "EXAMPLE",
      "UseActiveDirectorySchema": true
    },
    "Entra": {
      "TenantId": "...",
      "ClientId": "...",
      "UserPrincipalNameDomain": "example.onmicrosoft.com"
    }
  }
}

Secrets do not belong in appsettings.json. Ldap:BindPassword and Entra:ClientSecret should come from environment variables, user secrets or a key vault.

Creating accounts

Reading a directory and writing to one are separate concerns, and this treats them that way:

  • Reading needs a bind account with no special rights (User.Read.All on Entra).
  • Creating needs AllowUserCreation, a container named in CreateUsersInOrganizationalUnit, and write rights (User.ReadWrite.All on Entra).

Creation is off unless a site turns it on, and is confined to that one container — a request naming anywhere else is refused rather than redirected. Ask IDirectoryProvider.CanCreateUsers before offering a create control; it tells you whether the operation will be permitted before anyone tries it.

No password is ever handled here. Accounts are created requiring one to be set by an administrator, because a password typed into a CMS form travels through the browser and the request log on its way to the directory.

Changelog

1.0.2 — 2026-08-24

Removes a dashboard screenshot that showed an error toast. It was captured against a site where this plugin's API was unreachable, so it advertised a broken dashboard. No screenshot is better than a misleading one; a replacement will be taken against a working install.

1.0.1 — 2026-08-24

Package metadata only: the listing now carries an icon and search tags, and the project and repository links point at the organisation that actually hosts this code. No code changes.

1.0.0 — 2026-08-22

  • First release. IDirectoryProvider with search, single lookup, account creation and a connection test, plus IDirectoryProviderResolver for sites that register more than one directory.

License

MIT © SplatDev

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (3)

Showing the top 3 NuGet packages that depend on SplatDev.Directory:

Package Downloads
SplatDev.Umbraco.Plugins.RdpManager

Umbraco Remote Desktop connection manager plugin — store RDP configs and generate .rdp file downloads. Supports Umbraco 13 (net8.0) and Umbraco 17 (net10.0)

SplatDev.Directory.Ldap

Active Directory and generic LDAP provider for SplatDev.Directory. Searches people, reads an account and optionally creates one, using System.DirectoryServices.Protocols so it runs on Linux as well as Windows.

SplatDev.Directory.EntraId

Entra ID provider for SplatDev.Directory, over Microsoft Graph. Searches people, reads an account and optionally creates one.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 47 8/24/2026