How david0/ldapbrowse works
ldapbrowse is a terminal LDAP browser. The principal workflow is: a user supplies connection/search options, the application binds to LDAP and builds a directory tree, the curses interface lets the user navigate entries and inspect attributes, and key bindings trigger filtered searches, subtree deletion, or LDIF export. The graph separates the application’s LDAP operations, terminal interaction, tree model/view, and export. Relationships are limited to calls visible in excerpts or capabilities stated in the README; unsampled implementation details are not inferred.
Main entry points: ldapbrowse.c CLI and workflow · ldifwriter.c LDIF writer · treeview.c Tree navigation view · tree.c Directory tree
Components 13
Application
- CLI and workflow
src/ldapbrowse.c - String utilities
src/stringutils.c
LDAP Directory
- LDAP connection
src/ldapbrowse.c - Subtree search
src/ldapbrowse.c - Entry attributes
src/ldapbrowse.c - Subtree deletion
src/ldapbrowse.c
Terminal UI
- Curses interface
src/ldapbrowse.c - Tree navigation view
src/treeview.c
Tree and Export
- Directory tree
src/tree.c - LDIF writer
src/ldifwriter.c
Other components
- User
- LDAP server
- LDIF file
Connections 18
- User → CLI and workflow: sets options
README.md - CLI and workflow → LDAP connection: configures bind
src/ldapbrowse.c - LDAP connection → LDAP server: binds
src/ldapbrowse.c - CLI and workflow → Subtree search: loads subtree
src/ldapbrowse.c - Subtree search → LDAP server: searches entries
src/ldapbrowse.c - Subtree search → Directory tree: builds nodes
src/ldapbrowse.c - CLI and workflow → Curses interface: starts interface
src/ldapbrowse.c - Curses interface → Tree navigation view: drives navigation
src/ldapbrowse.c - Tree navigation view → Directory tree: renders tree
src/treeview.c - Curses interface → Entry attributes: shows selection
src/ldapbrowse.c - Entry attributes → LDAP server: reads attributes
src/ldapbrowse.c - User → Curses interface: uses key bindings
README.md - CLI and workflow → Subtree deletion: dispatches delete
src/ldapbrowse.c - Subtree deletion → LDAP server: deletes entry
src/ldapbrowse.c - CLI and workflow → LDIF writer: requests export
src/ldapbrowse.c - LDIF writer → LDAP server: searches subtree
src/ldifwriter.c - LDIF writer → LDIF file: writes LDIF
src/ldifwriter.c - CLI and workflow → String utilities: trims input
src/ldapbrowse.c