Recently I stumbled upon LDAPfuse, a simple LDAP Browser, based on FUSE, filesystem in userspace. I found it quite handy to search a directory tree with simple, terminal based operations. The only requirement is the definition of a mount point.
Bemerkung
This is just a browser, that is, viewing entries, modifying and other LDAP operations are not possible.
The Manual Page ldapfuse(1) provides basic information on configuration options. I created a simple shell script to present results.
#! /bin/bash
FUSE=/usr/bin/ldapfuse
BINDDN="cn=benchmark,o=example"
PASSWD="secret"
URI="ldap://localhost/ou=benchmark,o=example"
MNT="/home/dk/adbook"
$FUSE -D $BINDDN -w $PASSWD $URI $MNT
And this is the result:
cd ~/adbook
[dk@pink adbook]$ ll
users 0 1. Jan 1970 uid=6495
users 0 1. Jan 1970 uid=6496
users 0 1. Jan 1970 uid=6497
users 0 1. Jan 1970 uid=6498
[dk@pink adbook]$ cd uid=6497
[dk@pink uid=6497]$ ll
users 81 1. Jan 1970 cn
users 81 1. Jan 1970 givenName
users 81 1. Jan 1970 mail
users 63 1. Jan 1970 objectClass
users 81 1. Jan 1970 sn
users 5 1. Jan 1970 uid
users 81 1. Jan 1970 userPassword
[dk@pink uid=6497]$ less objectClass
top
person
organizationalPerson
inetOrgPerson
extensibleObject
You may use GNU Midnight Commander or any decent file manager to browse the search results.