Skip to content

RegionOrebroLan/.NET-DirectoryServices-Protocols-Extensions

Repository files navigation

.NET-DirectoryServices-Protocols-Extensions

Additions and extensions for .NET directory-services protocols.

NuGet

1 Information

The target-framework is netstandard2.0. But it will probably only work with:

  • net6.0
  • net7.0
  • net8.0

Normally netstandard2.0 would be supported by:

  • net462
  • net5.0
  • net6.0
  • net7.0
  • net8.0
  • netcoreapp3.1

System.DirectoryServices.Protocols 8.0.0 is used because we want SecureSocketLayer-possibility on Linux.

I don't find the System.DirectoryServices.Protocols-documentation so detailed regarding cross-platform functionality.

1.1 SecureSocketLayer (SSL) on Linux

We may need something like below to run in a Linux container if we want to use SSL. Maybe mcr.microsoft.com/dotnet/aspnet:8.0 is necesarry.

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
RUN apt update && apt install -y libldap-2.5-0
...

1.2 Connection-string

  • Example 1: AuthenticationType=Basic;Credential.Domain=example;Credential.Password=P@ssword12;Credential.UserName=Alice;Identifier.Port=636;Identifier.ServerSeparator=|;Identifier.Servers=dc-01.example.org|dc-02.example.org|dc-03.example.org|dc-04.example.org;Session.ProtocolVersion=3;Session.SecureSocketLayer=true;Timeout=00:01:00
  • Example 2: AuthenticationType=Basic;Credential.Domain=example;Credential.JoinDomainAndUserName=true;Credential.Password=P@ssword12;Credential.UserName=Alice;Identifier.Connectionless=false;Identifier.FullyQualifiedDnsHostName=true;Identifier.Port=636;Identifier.Servers=dc-01.example.org,dc-02.example.org,dc-03.example.org,dc-04.example.org;Session.AutoReconnect=true;Session.DomainName=example.org;Session.HostName=host.example.org;Session.Locators=DirectoryServicesPreferred|GCRequired|PdcRequired|KdcRequired|OnlyLdapNeeded|ReturnDnsName;Session.PingKeepAliveTimeout=00:10:00;Session.PingLimit=10;Session.PingWaitTimeout=00:00:10;Session.ProtocolVersion=3;Session.ReferralChasing=All;Session.RootDseCache=false;Session.Sealing=true;Session.SecureSocketLayer=true;Session.Signing=false;Session.Sspi=20;Session.TcpKeepAlive=false;Timeout=00:05:00

1.2 Links

2 Development

2.1 Signing

Drop the "StrongName.snk" file in the repository-root. The file should not be included in source control.

About

Additions and extensions for .NET directory-services protocols.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages