ldaplooksee

Simple CLI for searching LDAP

Usage no npm install needed!

<script type="module">
  import ldaplooksee from 'https://cdn.skypack.dev/ldaplooksee';
</script>

README

LDAP Look-See

NPM Version

Command Line LDAP Search

Search LDAP from command-line

Installation

$ npm install -g ldaplooksee

Usage

Interactive Lookups

ldaplooksee will prompt you for your ldap configuration.

$ ldaplooksee

[?] LDAP url?
> ldaps://ldap.example.org

[?] Base?
> dc=users,dc=localhost

[?] Username or DN?
> root

[?] Password?
> ******

[?] ldap search (e.g. `uid=artvandelay`)
> uid=artvandelay

[1/1]
dn: 'uid=artvandelay, dc=users, dc=localhost'
idNumber: 1234567
uid: 'artvandelay'
givenName: 'Art'
sn: 'Vandelay'
telephoneNumber: '555-123-4567'

Quick search

Quick lookup, pass in uid as a command line argument

$ ldaplooksee artvandelay

[1/1]
dn: 'uid=artvandelay, dc=users, dc=localhost'
idNumber: 1234567
uid: 'artvandelay'
givenName: 'Art'
sn: 'Vandelay'
telephoneNumber: '555-123-4567'

Reset Config

$ ldaplooksee --reset

Related

License

MIT © James Johnson