mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Handle IPv6 localhost address
This commit is contained in:
parent
460cb4bd4b
commit
22c68eec16
1 changed files with 6 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue