mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
save output across searches
This commit is contained in:
parent
283f79c268
commit
74948b9b04
@ -82,10 +82,13 @@ SLEEP=15
|
|||||||
echo "Waiting $SLEEP seconds for shadow subtrees to sync..."
|
echo "Waiting $SLEEP seconds for shadow subtrees to sync..."
|
||||||
sleep $SLEEP
|
sleep $SLEEP
|
||||||
|
|
||||||
|
echo "Filtering original ldif used to create database..."
|
||||||
|
. $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT
|
||||||
|
|
||||||
for P in $PORT1 $PORT2 ; do
|
for P in $PORT1 $PORT2 ; do
|
||||||
echo "Using ldapsearch to read all the entries from port $P..."
|
echo "Using ldapsearch to read all the entries from port $P..."
|
||||||
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $P \
|
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $P \
|
||||||
-S "" '(objectclass=*)' > $SEARCHOUT 2>&1
|
-S "" '(objectclass=*)' > "${SEARCHOUT}.${P}" 2>&1
|
||||||
RC=$?
|
RC=$?
|
||||||
|
|
||||||
if test $RC != 0 ; then
|
if test $RC != 0 ; then
|
||||||
@ -95,9 +98,7 @@ for P in $PORT1 $PORT2 ; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Filtering ldapsearch results..."
|
echo "Filtering ldapsearch results..."
|
||||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
. $LDIFFILTER < "${SEARCHOUT}.${P}" > $SEARCHFLT
|
||||||
echo "Filtering original ldif used to create database..."
|
|
||||||
. $LDIFFILTER < $GLUESYNCOUT > $LDIFFLT
|
|
||||||
echo "Comparing filter output..."
|
echo "Comparing filter output..."
|
||||||
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
|
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user