mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
added attr strip test
This commit is contained in:
parent
85bdf79337
commit
8547e09c6e
@ -30,6 +30,7 @@ replogfile ./test-db/slapd.replog
|
||||
|
||||
replica host=localhost:9010
|
||||
suffix="ou=Groups,o=University of Michigan,c=US"
|
||||
attr!=description
|
||||
binddn="cn=Replica,ou=Groups,o=University of Michigan,c=US"
|
||||
bindmethod=simple
|
||||
credentials=secret
|
||||
|
@ -224,7 +224,7 @@ SEARCHOUT=$SUBMASTEROUT
|
||||
LDIF=$SLAVEOUT
|
||||
|
||||
echo "Filtering master ldapsearch results..."
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT
|
||||
echo "Filtering slave ldapsearch results..."
|
||||
. $LDIFFILTER < $LDIF > $LDIFFLT
|
||||
|
||||
@ -239,14 +239,14 @@ fi
|
||||
SEARCHOUT=$MASTEROUT
|
||||
|
||||
echo "Filtering remaining data"
|
||||
. $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
|
||||
. $LDIFFILTER < $SEARCHOUT | egrep -iv ^description > $SEARCHFLT
|
||||
|
||||
echo "Stripping slave entries from master output..."
|
||||
$CMP $SEARCHFLT $LDIFFLT | $UNDIFFFILTER > $SUBFLT
|
||||
|
||||
echo "Stripping subtree entries from master output..."
|
||||
. $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..."
|
||||
$CMP $SUBFLT $SUBFLT2 > $CMPOUT
|
||||
|
Loading…
Reference in New Issue
Block a user