qzwi: add LDAP

This commit is contained in:
Franzi 2021-12-17 11:51:33 +01:00
parent 0e6fbd3e78
commit 471f8e8771
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 412 additions and 1 deletions

View file

@ -0,0 +1,13 @@
#!/bin/bash
# ^^^^ Needed for fancy co-processes.
db=$1
[[ -z "$db" ]] && { echo "Usage: $0 <db>" >&2; exit 1; }
slapcat -b "$db" -f /etc/ldap/slapd.conf \
1> >(gzip >/var/tmp/ldapdumps/"$db".gz) \
2> >(grep -v \
-e "no DB_CONFIG file found in directory" \
-e "Expect poor performance" \
>&2)