Linger.Ldap.Novell 0.1.2-alpha

This is a prerelease version of Linger.Ldap.Novell.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Linger.Ldap.Novell --version 0.1.2-alpha                
NuGet\Install-Package Linger.Ldap.Novell -Version 0.1.2-alpha                
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="Linger.Ldap.Novell" Version="0.1.2-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Linger.Ldap.Novell --version 0.1.2-alpha                
#r "nuget: Linger.Ldap.Novell, 0.1.2-alpha"                
#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.
// Install Linger.Ldap.Novell as a Cake Addin
#addin nuget:?package=Linger.Ldap.Novell&version=0.1.2-alpha&prerelease

// Install Linger.Ldap.Novell as a Cake Tool
#tool nuget:?package=Linger.Ldap.Novell&version=0.1.2-alpha&prerelease                

Linger.Ldap

Linger.Ldap is a C# helper library for interacting with LDAP servers.

Features

  • Supports LDAP connection and authentication
  • Provides search and query functionalities
  • Supports retrieval of multiple LDAP attributes

Installation

From Visual Studio

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages....
  4. Click on the Browse tab and search for "Linger.Utils".
  5. Click on the Linger.Ldap package, select the appropriate version and click Install.

Package Manager Console

PM> Install-Package Linger.Ldap

.NET CLI Console

> dotnet add package Linger.Ldap

Usage

Code Example

Here is a simple code example demonstrating how to use the Linger.Ldap library to perform an LDAP query:

using System;
using Linger.Ldap;
using Linger.Ldap.Contracts;

class Program
{
    static void Main()
    {
        // Configure LDAP settings
        var ldapConfig = new LdapConfig
        {
            Url = "ldap://your-ldap-server",
            Security = true,
            Domain = "your-domain",
            SearchBase = "DC=yourdomain,DC=com",
            SearchFilter = "(&(objectClass=user)(objectClass=person)(sAMAccountName={0}))"
        };

        // Create an instance of the Ldap class
        var ldap = new Ldap(ldapConfig);

        // Find a user
        var userName = "johndoe";
        var user = ldap.FindUser(userName);

        if (user != null)
        {
            Console.WriteLine($"User {userName} found: {user.DisplayName}");
        }
        else
        {
            Console.WriteLine($"User {userName} not found");
        }

        // Validate user credentials
        var password = "userpassword";
        var isValid = ldap.ValidateUser(userName, password);

        if (isValid)
        {
            Console.WriteLine($"User {userName} credentials are valid");
        }
        else
        {
            Console.WriteLine($"User {userName} credentials are invalid");
        }
    }
}

Contributing

Contributions are welcome! Please submit a pull request or report any issues.

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0-alpha 40 2/9/2025
0.1.2-alpha 46 12/17/2024
0.1.1-alpha 47 12/17/2024
0.1.0-alpha 50 12/6/2024