Linger.Ldap.Novell 0.2.0-alpha

This is a prerelease version of Linger.Ldap.Novell.
dotnet add package Linger.Ldap.Novell --version 0.2.0-alpha                
NuGet\Install-Package Linger.Ldap.Novell -Version 0.2.0-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.2.0-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.2.0-alpha                
#r "nuget: Linger.Ldap.Novell, 0.2.0-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.2.0-alpha&prerelease

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

Linger.Ldap.Novell

A comprehensive .NET library providing seamless integration with LDAP directories using the Novell.Directory.Ldap provider, with cross-platform support.

Features

Core Functionality

  • Platform-independent LDAP operations
  • SSL/TLS secure connections
  • Connection pooling and management
  • Comprehensive error handling

User Management

  • User authentication and validation
  • Detailed user information retrieval
  • Advanced search capabilities
  • Group membership querying

Information Categories

  • Basic identification (username, display name, UPN)
  • Personal information (first name, last name, initials)
  • Contact details (email, phone numbers, addresses)
  • Organization info (department, title, employee ID)
  • System attributes (workstations, profile paths)
  • Security settings (account status, password info)

Supported Frameworks

  • .NET 9.0
  • .NET 8.0

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.Ldap.Novell".
  5. Click on the Linger.Ldap.Novell package, select the appropriate version and click Install.

Package Manager Console

PM> Install-Package Linger.Ldap.Novell

.NET CLI Console

> dotnet add package Linger.Ldap.Novell

Usage Examples

Basic Configuration

var config = new LdapConfig 
{ 
    Url = "ldap.company.com", 
    Domain = "COMPANY", 
    SearchBase = "DC=company,DC=com", 
    Security = true, 
    Credentials = new LdapCredentials { BindDn = "serviceAccount", BindCredentials = "password" } 
};

User Authentication

using var ldap = new Ldap(config); 
if (ldap.ValidateUser("username", "password", out var userInfo)) 
{
    Console.WriteLine($"User authenticated: {userInfo.DisplayName}"); 
    Console.WriteLine($"Email: {userInfo.Email}"); 
    Console.WriteLine($"Department: {userInfo.Department}"); 
}

Finding Users

using var ldap = new Ldap(config);

// Find specific user 
var user = ldap.FindUser("username"); 
if (user != null) 
{ 
    Console.WriteLine($"Name: {user.DisplayName}"); 
    Console.WriteLine($"Email: {user.Email}"); 
    Console.WriteLine($"Title: {user.Title}"); 
}

// Search users with pattern
var users = ldap.GetUsers("john*"); 
foreach (var foundUser in users) 
{ 
    Console.WriteLine($"Found: {foundUser.DisplayName}");
    Console.WriteLine($"Groups: {string.Join(", ", foundUser.MemberOf ?? Array.Empty())}"); 
}

Available User Properties

Identification

  • DisplayName
  • SamAccountName
  • UserPrincipalName (UPN)
  • DistinguishedName (DN)

Personal Information

  • FirstName
  • LastName
  • Description
  • Initials

Contact Information

  • Email
  • TelephoneNumber
  • Mobile
  • HomePhone
  • Fax
  • IpPhone
  • WebPage

Organization Details

  • Company
  • Department
  • Title
  • Manager
  • EmployeeId
  • EmployeeNumber

Address Information

  • Street
  • City
  • State
  • PostalCode
  • Country
  • PostOfficeBox

System Information

  • UserWorkstations
  • ProfilePath
  • HomeDrive
  • HomeDirectory
  • WhenCreated

Security Information

  • Status (Enabled/Disabled/Locked/Expired)
  • AccountExpires
  • PwdLastSet
  • PwdExpirationLeftDays
  • MemberOf (Group memberships)

Key Differences from Active Directory Version

  • Cross-platform support (Windows, Linux, macOS)
  • Different connection handling mechanism
  • Platform-independent authentication
  • Native SSL/TLS support
  • More flexible LDAP server compatibility

Requirements

  • LDAP/LDAPS server access
  • Appropriate LDAP permissions

Contributing

We welcome contributions! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a Pull Request

License

This project is licensed under the MIT License.

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