docs:tips_n_tricks:ldap.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
docs:tips_n_tricks:ldap.html [27.02.2024 17:30 CET] – [Write olcAccess.ldif in "human readable" format from actual config] peter | docs:tips_n_tricks:ldap.html [27.02.2024 23:32 CET] (current) – [Write olcAccess.ldif in "human readable" format from actual config] peter | ||
---|---|---|---|
Line 156: | Line 156: | ||
ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config -o ldif-wrap=no -L ' | ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config -o ldif-wrap=no -L ' | ||
- | | sed -n -e '/^dn: / | + | | sed -e '/^dn: / |
- | + | ||
- | [[docs: | + | or |
+ | |||
+ | | ||
+ | |||
+ | <file sed olcAccess.sed> | ||
+ | #!/bin/sed -f | ||
+ | /^dn: /{ | ||
+ | s/ | ||
+ | h | ||
+ | d | ||
+ | } | ||
+ | / | ||
+ | s/ by /\n by /gi | ||
+ | H | ||
+ | s/^.*$// | ||
+ | x | ||
+ | s/ | ||
+ | p | ||
+ | d | ||
+ | } | ||
+ | d | ||
+ | </ | ||
+ | |||
+ | [[docs: | ||
==== Client ==== | ==== Client ==== | ||
=== Configure nsswitch === | === Configure nsswitch === |
docs/tips_n_tricks/ldap.html.txt · Last modified: 27.02.2024 23:32 CET by peter