ldif-duplicate-attrs(1)
π ldif-duplicate-attrs β the hxtools girlie
okay bestie, so this is a page from hxtools, and it's called ldif-duplicate-attrs(1). Let me tell you everything about it, no gatekeeping π
β¨ Name β¨
ldif-duplicate-attrs β check for multi-value attributes in LDIF file π¦
like, it's the vibe-check tool for your LDIF, fr fr.
πΈ Usage πΈ
procalldiff [-C] <foo.ldif >report.txt
(yeah it literally says procalldiff in there, I don't make the rules, I just report them π)
π¨ IMPORTANT bestie: the input must not contain linewraps. Do use with
{slapcat|ldapsearch} -o ldif-wrap=no ...
so turn the wrapping OFF, periodt. π
π Description π
So what it does is: it reads an LDIF file from standard input and checks for the presence of multivalued attributes of all the DNs. π
Whitelisted attribute names get excluded from the problem report β they're the good ones, they get a pass. β¨
Then it outputs a statistic sorted by severity to standard output. It's giving report card energy. π
π Options π
-Cβ Force color output. Useful when piping intoless -R. (By default, color is only emitted when stdout is a tty.) π
so if you're piping and you want the pretty colors anyway, that's your girl.
π₯ Example output π₯
11 cn=67eoG,ou=Muenchen,o=Deutschland
uid(3) cn(2) fullName(2) mail(2) sn(2)
10 cn=Hoff,ou=Muenchen,o=Deutschland
homeCity(2) homePostalAddress(2) homeZipCode(2) l(2)
telephoneNumber(2)
Let me decode this for you bestie π§:
The DN cn=67eoG has had three values for the "uid" attribute, two for "cn", and so on β for a total badness score of 11. π iconic levels of chaos ngl.
The entire output is sorted by:
- Overall, DNs are sorted by descending score.
- For a particular DN, attributes are sorted by descending score.
- If two attributes have the same score, sort occurs lexicographically ascending.
so worst offenders first, then within a DN, worst attribute first, and ties get alphabetical. slay. π
π See also π
and that's the whole thing, bestie π«Ά β this page came from hxtools, dated 2015-04-01, and it's ldif-duplicate-attrs(1) to the very end. go check your attributes, they might be duplicating, no cap. β¨ππ
π¦ where this page comes from
- debian bookworm: hxtools 20221119-1 Β· MIT
- debian trixie: hxtools 20231224-2+b2 Β· MIT
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 Β· GPL-2.0-or-later AND WTFPL
- ubuntu jammy: hxtools 20211204-1 Β· GPL-2.0-or-later OR GPL-2+3 OR WTFPL
- ubuntu noble: hxtools 20231224-2ubuntu1 Β· MIT
- ubuntu questing: hxtools 20231224-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms