SLAPO-DEREF(5)

πŸ’– SLAPO-DEREF πŸ’–

ok so bestie, this one is slapo-deref from the File Formats Manual section (section 5, if you're keeping track) β€” it's the Dereference Control overlay for slapd and honestly? she's a whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

slapo-deref β€” the Dereference Control overlay to slapd. that's it, that's the girl πŸ’…


🌸 SYNOPSIS 🌸

the config files in question, so you know where things live:

/etc/openldap/slapd.conf

/etc/openldap/slapd.d

πŸ‘‘ DESCRIPTION πŸ‘‘

ok so here's the tea. This overlay implements the draft Dereference control β€” no cap, that's literally what it does. And the best part? The overlay can be used with any backend, or globally for all backends. so flexible, so iconic, she contain multitudes fr fr πŸ’œ


πŸŽ€ EXAMPLES πŸŽ€

first up, the config β€” you just drop the overlay in next to your backend like:

database mdb
...
overlay deref

now say you've got these entries hanging around, minding their own business:

dn: cn=Howard Chu,ou=people,dc=example,dc=org
objectClass: inetOrgPerson
cn: Howard Chu
sn: Chu
uid: hyc

dn: cn=Pierangelo Masarati,ou=people,dc=example,dc=org
objectClass: inetOrgPerson
cn: Pierangelo Masarati
sn: Masarati
uid: ando

dn: cn=Test Group,ou=groups,dc=example,dc=org
objectClass: groupOfNames
cn: Test Group
member: cn=Howard Chu,ou=people,dc=example,dc=org
member: cn=Pierangelo Masarati,ou=people,dc=example,dc=org

so a search could be performed with a Dereference request control value specified as

{ member, uid }

I.e.,

ldapsearch -x -b dc=example,dc=org -E 'deref=member:uid'

and the "cn=Test Group" entry would be returned with the response control value

{ { member, cn=Howard Chu,ou=people,dc=example,dc=org,
    { { uid, [hyc] } } },
  { member, cn=Pierangelo Masarati,ou=people,dc=example,dc=org,
    { { uid, [ando] } } } }

look at those dereferenced uids just sitting there all resolved 😭 so satisfying, it's giving ✨magic✨


πŸ—‚οΈ FILES πŸ—‚οΈ

  • /etc/openldap/slapd.conf β€” the default slapd configuration file. home base 🏠
  • /etc/openldap/slapd.d β€” the default slapd configuration directory. the other home base 🏑

🫢 SEE ALSO 🫢

go read the lore, bestie, it's worth it πŸ“šπŸ’–


🌈 AUTHOR 🌈

Pierangelo Masarati. icon, legend, the moment πŸ‘‘


ok that's the whole page, every last crumb accounted for. no skips, no shortcuts, periodt πŸ’…

OpenLDAP 2.7.2, dated 2026/10/21 β€” and that's on SLAPO-DEREF(5), mwah πŸŽ€βœ¨ bye bestie, go dereference something πŸ¦‹πŸ’–

πŸ“¦ where this page comes from