mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
added attr strip test
This commit is contained in:
parent
85bdf79337
commit
8547e09c6e
2 changed files with 4 additions and 3 deletions
|
|
@ -30,6 +30,7 @@ replogfile ./test-db/slapd.replog
|
||||||
|
|
||||||
replica host=localhost:9010
|
replica host=localhost:9010
|
||||||
suffix="ou=Groups,o=University of Michigan,c=US"
|
suffix="ou=Groups,o=University of Michigan,c=US"
|
||||||
|
attr!=description
|
||||||
binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US"
|
binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US"
|
||||||
bindmethod=simple
|
bindmethod=simple
|
||||||
credentials=secret
|
credentials=secret
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ SEARCHOUT=$SUBMASTEROUT
|
||||||
LDIF=$SLAVEOUT
|
LDIF=$SLAVEOUT
|
||||||
|
|
||||||
echo "Filtering master ldapsearch results..."
|
echo "Filtering master ldapsearch results..."
|
||||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT
|
||||||
echo "Filtering slave ldapsearch results..."
|
echo "Filtering slave ldapsearch results..."
|
||||||
. $LDIFFILTER < $LDIF > $LDIFFLT
|
. $LDIFFILTER < $LDIF > $LDIFFLT
|
||||||
|
|
||||||
|
|
@ -239,14 +239,14 @@ fi
|
||||||
SEARCHOUT=$MASTEROUT
|
SEARCHOUT=$MASTEROUT
|
||||||
|
|
||||||
echo "Filtering remaining data"
|
echo "Filtering remaining data"
|
||||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT
|
||||||
|
|
||||||
echo "Stripping slave entries from master output..."
|
echo "Stripping slave entries from master output..."
|
||||||
$CMP $SEARCHFLT $LDIFFLT | $UNDIFFFILTER > $SUBFLT
|
$CMP $SEARCHFLT $LDIFFLT | $UNDIFFFILTER > $SUBFLT
|
||||||
|
|
||||||
echo "Stripping subtree entries from master output..."
|
echo "Stripping subtree entries from master output..."
|
||||||
. $SUBFILTER 'ou=Groups,[ ]?o=University of Michigan,[ ]?c=US' < $SEARCHOUT \
|
. $SUBFILTER 'ou=Groups,[ ]?o=University of Michigan,[ ]?c=US' < $SEARCHOUT \
|
||||||
| $UNDIFFFILTER > $SUBFLT2
|
| $UNDIFFFILTER | egrep -iv ^description > $SUBFLT2
|
||||||
|
|
||||||
echo "Comparing master minus subtree and master minus slave..."
|
echo "Comparing master minus subtree and master minus slave..."
|
||||||
$CMP $SUBFLT $SUBFLT2 > $CMPOUT
|
$CMP $SUBFLT $SUBFLT2 > $CMPOUT
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue