LDBSEARCH(1)

πŸ’– LDBSEARCH β€” bestie's guide to searching LDB databases πŸ’–

okay so this is the ldbsearch page from section 1 of the system administration tools manual, and honestly? she's a baddie. let's get into it.


✨ NAME ✨

ldbsearch β€” search for records in a LDB database πŸ¦‹


🌸 SYNOPSIS 🌸

ldbsearch [-h] [-s base|one|sub] [-b basedn] [-i] [-H LDB-URL]
          [expression] [attributes]

no cap, that's the whole vibe right there. now let me explain what all of it means. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so ldbsearch goes digging through a LDB database looking for records that match the expression you gave it. and like β€” what even is that expression format? bestie, it's the exact same format as described in the ldapsearch(1) manpage. iykyk. go read that one if you need the deets.

and then for every single record it finds? it prints out the attributes you asked for. periodt. ✨


πŸ‘‘ OPTIONS πŸ‘‘

one bullet per flag, no skips, no shortcuts, we're doing this properly. πŸ’–

  • -h β€” shows you the whole list of available options. it's giving "help me help you".
  • -H <ldb-url> β€” the LDB URL you wanna connect to. like, where's the database at?? check ldb(3) for the full details on URL formatting, mwah.
  • -s one|sub|base β€” the search scope you want to use. that's one-level, subtree, or base. pick your fighter. 🌈
  • -i β€” reads your search expressions from stdin instead of from the command line. very demure, very piped. πŸ“
  • -b basedn β€” specify the Base DN to use. that's your starting point, your home base, your main character location. πŸ’…

🧚 ENVIRONMENT 🧚

  • LDB_URL β€” the LDB URL to connect to. but heads up bestie: it can be overridden if you use the -H command-line option. so -H wins. always. no arguments. 😭

⭐ VERSION ⭐

this man page is correct for version 1.1 of LDB. so if you're on something else... girl, check yourself. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

go read these next, fr fr:


πŸ’œ AUTHOR πŸ’œ

ldb was written by Andrew Tridgell[1]. iconic behaviour, honestly.

if you wanna report a problem or make a suggestion, please go look at the http://ldb.samba.org/ web site for the current contact and maintainer info. they wanna hear from you. 🫢

this manpage was written by Jelmer Vernooij. slay.


πŸ“ NOTES πŸ“

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

and that's the whole page, bestie! πŸ’€ remember: the vibe changes but the facts never do. go search some records, you've got this. 🌈✨

LDB 1.1 β€” dated 09/09/2026. that's the version and the date, and this has been your girl signing off. bye bestie, love u, drink water. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from