Skip to content

v0.1.0 - Initial Release

Latest

Choose a tag to compare

@yotsuda yotsuda released this 01 Apr 02:32

LdapDrive v0.1.0

PowerShell Provider for LDAP directories. Browse and manage LDAP entries as a virtual filesystem.

Highlights

  • Filesystem navigationcd, dir, mkdir, ren, move, del for LDAP entries
  • 10 cmdlets — Search, Set-LdapAttribute, Remove-LdapEntry, Get-LdapSchema, Test-LdapAttribute, Get-LdapWhoAmI, Set-LdapPassword, and more
  • Pipeline integrationSearch-LdapEntry | Set-LdapAttribute for bulk operations
  • Tab completion — Attribute names, schema names, and drive names auto-complete from the server
  • AI integration — Combined with PowerShell.MCP, enables AI assistants to read and write LDAP directories through natural language
  • Cross-platform — Windows and Linux (PowerShell 7.4+)

Install

Install-Module LdapDrive

Quick Start

Import-Module LdapDrive
New-LdapDrive -Server ldap.example.com -BaseDn "dc=example,dc=com" -AuthType Basic -Credential (Get-Credential)
cd LDAP:\
dir

Cmdlets

Cmdlet Description
New-LdapDrive Create a PSDrive connected to an LDAP server
Import-LdapConfig Load configuration file and mount drives
Edit-LdapConfig Open configuration file in an editor
Search-LdapEntry Search entries with LDAP filter and paging
Set-LdapAttribute Modify attributes on an entry
Remove-LdapEntry Remove an entry by DN
Get-LdapSchema Query schema (objectClasses / attributeTypes)
Test-LdapAttribute Server-side LDAP Compare operation
Get-LdapWhoAmI Who Am I? extended operation (RFC 4532)
Set-LdapPassword Password Modify extended operation (RFC 3062)

Provider Commands

Command LDAP Operation
dir Search (OneLevel / SubTree)
cd Navigate the directory tree
cat Read attributes (LDIF format)
mkdir Add entry
del Delete entry
ren ModifyDN (rename)
move ModifyDN (move)
Get-ItemProperty Read specific attributes
Set-ItemProperty Modify attributes

Requirements

  • PowerShell 7.4+ (Core edition)
  • On Linux: sudo apt-get install libldap2