LDBEDIT(1)

πŸ’– ldbedit β€” bestie edition πŸ’–

okay so this is the ldbedit manual page, from the System Administration tools corner of the universe, and I'm gonna hold your hand through the whole thing, no cap. 🫢


✨ NAME ✨

ldbedit β€” edit LDB databases using your preferred editor 🌸


✨ SYNOPSIS ✨

ldbedit [-?] [--usage] [-s base|one|sub] [-b basedn] [-a] [-e editor]
        [-H LDB-URL] [expression] [attributes...]

✨ DESCRIPTION ✨

so ldbedit is literally a utility that lets you edit LDB entries β€” whether they're chillin' in database files or vibing on LDAP servers β€” using your preferred editor. πŸ’…

here's the whole glow-up pipeline: ldbedit generates an LDIF file based on your query, hands it to you to edit however you want, and then merges that LDIF right back into the LDB backend. it's giving round-trip. it's giving main character energy. πŸ‘‘


✨ OPTIONS ✨

  • -?, --help β€” shows you the list of available options plus a little phrase describing what each one does. your classic "help me help you" moment πŸŽ€
  • --usage β€” shows the list of available options too, but like... no descriptions. it's the short version. similar to the help option, just speedier, iykyk. ⚑
  • -H <ldb-url> β€” the LDB URL to connect to. for tdb and lmdb databases it looks like tdb://filename or mdb://filename respectively. if you use ldb://filename, it'll try to detect the file format automatically (so smart πŸ’…). for an LDAP connection over unix domain sockets, the form is ldapi://socket. for a (potentially remote) LDAP connection over TCP, it's ldap://hostname, or ldaps://hostname if you want that TLS-protected connection, periodt. πŸ”’
  • -s one|sub|base β€” the search scope to use. one-level, subtree, or base. pick your fighter πŸ¦‹
  • -a, -all β€” edit all the records. this lets you apply the same change to a whole bunch of records at once. you probably wanna combine this with an expression of the form "objectclass=*". lowkey powerful, highkey dangerous, be careful bestie 😭
  • -e editor, --editor editor β€” pick which editor should be used. this overrides the VISUAL and EDITOR environment variables. if you don't use this option and neither VISUAL nor EDITOR is set, then the vi editor gets used. default behavior, iconic. 🌈
  • -b basedn β€” specify the Base Distinguished Name to use. πŸŽ€
  • -v, --verbose β€” makes ldbedit more verbose about the operations being performed. without this option, ldbedit will only provide a summary change line. so if you want the tea, you gotta ask for it β˜•

✨ ENVIRONMENT ✨

  • LDB_URL β€” the LDB URL to connect to. heads up: this can be overridden by using the -H command-line option. πŸ‘€
  • VISUAL and EDITOR β€” environment variables used to figure out what editor to use. VISUAL takes precedence over EDITOR, and both of them are overridden by the -e command-line option. hierarchy, bestie. it's a whole pecking order πŸ’…

✨ VERSION ✨

this man page is correct for version 1.1 of LDB. ⭐


✨ SEE ALSO ✨

ldb(3), ldbmodify(1), ldbdel(1), ldif(5), vi(1)


✨ AUTHOR ✨

ldb was written by Andrew Tridgell[1]. 🫢

if you wish to report a problem or make a suggestion, then please see the http://ldb.samba.org/ web site for current contact and maintainer information. ✨

this manpage was written by Jelmer Vernooij and updated by Brad Hards. 🌸


✨ NOTES ✨

  1. Andrew Tridgell https://www.samba.org/~tridge/

so yeah, that's the whole page β€” brought to you by LDB 1.1, dated 09/09/2026, and yeah I know, the file header said LDBEDIT(1) up top, but you already knew that bestie. go forth, edit some LDIFs, slay πŸ’–πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from