/ldaplooksee

Simpler LDAP Search CLI

Primary LanguageJavaScript

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