Command Line LDAP Search
Search LDAP from command-line
$ npm install -g ldaplooksee
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 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'
$ ldaplooksee --reset
MIT © James Johnson