Skip to content
Snippets Groups Projects
Commit 6d1f2ef2 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Handle IPv6 localhost address

parent e8ae93a1
No related branches found
No related tags found
No related merge requests found
......@@ -61,11 +61,14 @@ if test $RC != 0 ; then
exit $RC
fi
# Compare results, ignoring possible difference of IPv4/IPv6 localhost address
localrewrite='s/=127\.0\.0\.1:/=LOCAL:/; s/=\[::1\]:/=LOCAL:/'
echo "Filtering ldapsearch results..."
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
sed -e "$localrewrite" < $SEARCHOUT | . $LDIFFILTER > $SEARCHFLT
echo "Filtering expected data..."
sed -e "$localrewrite" < $MONITOROUT1 | . $LDIFFILTER > $LDIFFLT
echo "Comparing filter output..."
$CMP $SEARCHFLT $MONITOROUT1 > $CMPOUT
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
if test $? != 0 ; then
echo "comparison failed - connection monitor output is not correct"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment