Rfc2253 1.1.2

.NET Standard 1.3
dotnet add package Rfc2253 --version 1.1.2
NuGet\Install-Package Rfc2253 -Version 1.1.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="Rfc2253" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rfc2253 --version 1.1.2
#r "nuget: Rfc2253, 1.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rfc2253 as a Cake Addin
#addin nuget:?package=Rfc2253&version=1.1.2

// Install Rfc2253 as a Cake Tool
#tool nuget:?package=Rfc2253&version=1.1.2

Accepts and parses strings in the format of an RFC 2253 Distinguished Name, and optionally normalizes them for direct comparison of equivalency.

This project is a .NET Standard 1.3 solution to parse LDAP (or X.509) Distinguished Names and optionally normalize them so that two (or more) Distinguished Names can be compared to one another for equivalency.

Closely follows RFC 2253 for parsing. Parses both LDAPv2 and LDAPv3, but normalizes output for LDAPv3.

Instructions for Use

  1. Supply a Distinguished Name to be parsed to the DistinguishedName.Create(string distinguishedName) method
  2. Call the Normalized() method on the returned object to normalize the internal structures to be strictly compliant to RFC 2253
  3. Do the same two calls for another Distinguished Name
  4. To compare the two Distinguished Names for equivalency, compare the DistinguishedName objects' ToString() results to one another
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Rfc2253:

Package Downloads
AspNetCore.Authentication.SK.SmartID

SK Smart-ID external authentication for ASP.NET Core applications.

AspNetCore.Authentication.SK.IdCard

SK ID-card external authentication for ASP.NET Core applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2 13,324 2/1/2021
1.1.1 253 1/23/2021
1.1.0 253 1/23/2021
1.0.0 6,420 6/6/2018

Released under the MIT License.

This project was originally released targeting .NET Core 2.0.
RFC 2253 Distinguished Name Parser Version 1.1.0 now targets .NET Standard 1.3 to make it compatible with a larger number of projects.  Refer to https://docs.microsoft.com/en-us/dotnet/standard/net-standard for more details.

Version 1.1.2 fixes a bug that dropped a trailing space in an attribute value that was properly escaped.

Version 1.1.0 fixes a bug in the `ToString()` method (commas were missing), which may be a breaking change for some implementors.

Version 1.1.0 also fixes another bug in the `ToString()` method with regards to multi-valued attibutes, and now also sorts multi-valued attributes so that two distinguished names will now match if they have the same, but dis-ordered multi-valued attributes.