SLAPDN(8C)

πŸ’– NAME πŸ’–

slapdn β€” bestie, this one checks a whole list of string-represented LDAP DNs against the schema syntax. It's giving DN conformity check energy. πŸ‘‘


✨ SYNOPSIS ✨

/usr/bin/slapdn [-d debug-level] [-f slapd.conf] [-F confdir] [-N|-P]
[-o option[=value]] [-v] DN [...]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so, slapdn exists to check the conformance of a DN, and it does that based on the schema that's defined in slapd(8) and loaded up via slapd.conf(5). No cap, that's the whole vibe. 🧚

Here's how it moves: it opens the slapd.conf(5) configuration file or the slapd-config(5) backend, reads in all the schema definitions, and then β€” and this is the main character moment β€” it parses the DN list you handed it on the command-line. Literally just DN after DN, getting looked at. Periodt. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • -d debug-level β€” turns on debugging messages at whatever debug-level you specify. Want the deets? Go look at slapd(8), bestie. πŸ”
  • -f slapd.conf β€” points at an alternative slapd.conf(5) file, if you're not feeling the default one. πŸ™ˆ
  • -F confdir β€” specifies a config directory. Now listen closely because this one has layers, okay?
    • If you pass both -f and -F, the config file gets read and converted into config directory format, and then written to the directory you specified.
    • If you pass neither option, an attempt to read the default config directory will be made before trying to use the default config file.
    • And if a valid config directory exists, then the default config file is ignored. Like, fully ignored. Not invited to the party. πŸ’€
  • -N β€” only outputs a normalized form of the DN β€” the kind of thing you'd use inside a normalization tool. Lowkey incompatible with -P, so don't try to do both. 🚫
  • -o option[=value] β€” specify an option with a(n optional) value. The possible generic options/values are:
syslog=<subsystems>  (see `-s' in slapd(8))
syslog-level=<level> (see `-S' in slapd(8))
syslog-user=<user>   (see `-l' in slapd(8))
  • -P β€” only outputs a prettified form of the DN β€” perfect for a check and beautification tool, honestly the aesthetic option. 🌸 Incompatible with -N. She's exclusive.
  • -v β€” enables verbose mode. She's talkative. πŸ—£οΈ

🌈 EXAMPLES 🌈

Wanna check a DN? Run this, bestie:

/usr/bin/slapdn -f //etc/openldap/slapd.conf -v DN

(Yes, that's a double slash up in there β€” copy it exactly, don't get creative. 😭)


⭐ SEE ALSO ⭐

ldap(3), slapd(8), slaptest(8)

"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)


πŸ‘‘ ACKNOWLEDGEMENTS πŸ‘‘

OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release.


And that's a wrap on SLAPDN(8C), bestie 🫢 β€” this run was OpenLDAP 2.7.2, dated 2026/10/21. Slay, ate, no crumbs. πŸ’–βœ¨

πŸ“¦ where this page comes from