qzwi: add LDAP
This commit is contained in:
parent
0e6fbd3e78
commit
471f8e8771
12 changed files with 412 additions and 1 deletions
13
bundles/openldap/files/slapdump
Normal file
13
bundles/openldap/files/slapdump
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue