scalefocus / Novell.Directory.Ldap.NETStandard

LDAP client library for .NET Standard 1.3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDAP client library for .NET Standard 1.3

Supported on the .NET Standard 1.3 (https://docs.microsoft.com/en-us/dotnet/articles/standard/library) compatible .NET runtimes: .NET Core, .NET Framework 4.6, Universal Windows Platform, Xamarin.

It works against any LDAP protocol compatible directory server (including Microsoft Active Directory).

Build status - Windows Build
Build Status - Linux Build (includes functional tests & stress tests running against OpenLDAP)
NuGet

The library is originaly coming from Novell (https://www.novell.com/developer/ndk/ldap_libraries_for_c_sharp.html) - really old code base (looks like a tool-based conversion from Java - this is the original java code repo http://www.openldap.org/devel/gitweb.cgi?p=openldap-jldap.git;a=summary - first commit in that repo is from 2000 :)).

The Novell documentation for the original library:

First commit in this repo is the original source code from Novell.

See ChangeLog for summary of changes.

There are a number of basic functional tests which are also run as stress tests (e.g. the functional tests running on multiple threads) running against OpenLDAP on Ubuntu Trusty.

Sample usage

using (var cn = new LdapConnection())
{
	// connect
	cn.Connect("<<hostname>>", 389);
	// bind with an username and password
	// this how you can verify the password of an user
	cn.Bind("<<userdn>>", "<<userpassword>>");
	// call ldap op
	// cn.Delete("<<userdn>>")
	// cn.Add(<<ldapEntryInstance>>)
}

Contributions and bugs reports are welcome.

The library has some samples which are not included in the solution and are in the original state (see original_samples folder) - they may or may not compile on .NET Standard - but they should be compilable on .NET Standard with minimal work.

About

LDAP client library for .NET Standard 1.3

License:MIT License


Languages

Language:C# 100.0%