test032-chain revision 1.1.1.1.6.2 1 1.1.1.1.6.2 wrstuden #! /bin/sh
2 1.1.1.1.6.2 wrstuden # $OpenLDAP: pkg/ldap/tests/scripts/test032-chain,v 1.11.2.3 2008/02/11 23:26:51 kurt Exp $
3 1.1.1.1.6.2 wrstuden ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 1.1.1.1.6.2 wrstuden ##
5 1.1.1.1.6.2 wrstuden ## Copyright 1998-2008 The OpenLDAP Foundation.
6 1.1.1.1.6.2 wrstuden ## All rights reserved.
7 1.1.1.1.6.2 wrstuden ##
8 1.1.1.1.6.2 wrstuden ## Redistribution and use in source and binary forms, with or without
9 1.1.1.1.6.2 wrstuden ## modification, are permitted only as authorized by the OpenLDAP
10 1.1.1.1.6.2 wrstuden ## Public License.
11 1.1.1.1.6.2 wrstuden ##
12 1.1.1.1.6.2 wrstuden ## A copy of this license is available in the file LICENSE in the
13 1.1.1.1.6.2 wrstuden ## top-level directory of the distribution or, alternatively, at
14 1.1.1.1.6.2 wrstuden ## <http://www.OpenLDAP.org/license.html>.
15 1.1.1.1.6.2 wrstuden
16 1.1.1.1.6.2 wrstuden echo "running defines.sh"
17 1.1.1.1.6.2 wrstuden . $SRCDIR/scripts/defines.sh
18 1.1.1.1.6.2 wrstuden
19 1.1.1.1.6.2 wrstuden if test $BACKLDAP = "ldapno" ; then
20 1.1.1.1.6.2 wrstuden echo "LDAP backend not available, test skipped"
21 1.1.1.1.6.2 wrstuden exit 0
22 1.1.1.1.6.2 wrstuden fi
23 1.1.1.1.6.2 wrstuden
24 1.1.1.1.6.2 wrstuden rm -rf $TESTDIR
25 1.1.1.1.6.2 wrstuden
26 1.1.1.1.6.2 wrstuden mkdir -p $TESTDIR $DBDIR1 $DBDIR2
27 1.1.1.1.6.2 wrstuden
28 1.1.1.1.6.2 wrstuden echo "Running slapadd to build slapd database..."
29 1.1.1.1.6.2 wrstuden . $CONFFILTER $BACKEND $MONITORDB < $CHAINCONF1 > $ADDCONF
30 1.1.1.1.6.2 wrstuden . $CONFFILTER < $LDIFCHAIN1 > $SEARCHOUT
31 1.1.1.1.6.2 wrstuden $SLAPADD -f $ADDCONF -l $SEARCHOUT
32 1.1.1.1.6.2 wrstuden RC=$?
33 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
34 1.1.1.1.6.2 wrstuden echo "slapadd 1 failed ($RC)!"
35 1.1.1.1.6.2 wrstuden exit $RC
36 1.1.1.1.6.2 wrstuden fi
37 1.1.1.1.6.2 wrstuden
38 1.1.1.1.6.2 wrstuden . $CONFFILTER $BACKEND $MONITORDB < $CHAINCONF2 > $ADDCONF
39 1.1.1.1.6.2 wrstuden . $CONFFILTER < $LDIFCHAIN2 > $SEARCHOUT
40 1.1.1.1.6.2 wrstuden $SLAPADD -f $ADDCONF -l $SEARCHOUT
41 1.1.1.1.6.2 wrstuden RC=$?
42 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
43 1.1.1.1.6.2 wrstuden echo "slapadd 2 failed ($RC)!"
44 1.1.1.1.6.2 wrstuden exit $RC
45 1.1.1.1.6.2 wrstuden fi
46 1.1.1.1.6.2 wrstuden
47 1.1.1.1.6.2 wrstuden echo "Starting first slapd on TCP/IP port $PORT1..."
48 1.1.1.1.6.2 wrstuden . $CONFFILTER $BACKEND $MONITORDB < $CHAINCONF1 > $CONF1
49 1.1.1.1.6.2 wrstuden $SLAPD -f $CONF1 -h $URI1 -d $LVL $TIMING > $LOG1 2>&1 &
50 1.1.1.1.6.2 wrstuden PID1=$!
51 1.1.1.1.6.2 wrstuden if test $WAIT != 0 ; then
52 1.1.1.1.6.2 wrstuden echo PID $PID1
53 1.1.1.1.6.2 wrstuden read foo
54 1.1.1.1.6.2 wrstuden fi
55 1.1.1.1.6.2 wrstuden KILLPIDS="$PID1"
56 1.1.1.1.6.2 wrstuden
57 1.1.1.1.6.2 wrstuden echo "Starting second slapd on TCP/IP port $PORT2..."
58 1.1.1.1.6.2 wrstuden . $CONFFILTER $BACKEND $MONITORDB < $CHAINCONF2 > $CONF2
59 1.1.1.1.6.2 wrstuden $SLAPD -f $CONF2 -h $URI2 -d $LVL $TIMING > $LOG2 2>&1 &
60 1.1.1.1.6.2 wrstuden PID2=$!
61 1.1.1.1.6.2 wrstuden if test $WAIT != 0 ; then
62 1.1.1.1.6.2 wrstuden echo PID $PID2
63 1.1.1.1.6.2 wrstuden read foo
64 1.1.1.1.6.2 wrstuden fi
65 1.1.1.1.6.2 wrstuden
66 1.1.1.1.6.2 wrstuden KILLPIDS="$KILLPIDS $PID2"
67 1.1.1.1.6.2 wrstuden
68 1.1.1.1.6.2 wrstuden sleep 1
69 1.1.1.1.6.2 wrstuden
70 1.1.1.1.6.2 wrstuden echo "Using ldapsearch to check that first slapd is running..."
71 1.1.1.1.6.2 wrstuden for i in 0 1 2 3 4 5; do
72 1.1.1.1.6.2 wrstuden $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT1 \
73 1.1.1.1.6.2 wrstuden 'objectclass=*' > /dev/null 2>&1
74 1.1.1.1.6.2 wrstuden RC=$?
75 1.1.1.1.6.2 wrstuden if test $RC = 0 ; then
76 1.1.1.1.6.2 wrstuden break
77 1.1.1.1.6.2 wrstuden fi
78 1.1.1.1.6.2 wrstuden echo "Waiting 5 seconds for slapd to start..."
79 1.1.1.1.6.2 wrstuden sleep 5
80 1.1.1.1.6.2 wrstuden done
81 1.1.1.1.6.2 wrstuden
82 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
83 1.1.1.1.6.2 wrstuden echo "ldapsearch failed ($RC)!"
84 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
85 1.1.1.1.6.2 wrstuden exit $RC
86 1.1.1.1.6.2 wrstuden fi
87 1.1.1.1.6.2 wrstuden
88 1.1.1.1.6.2 wrstuden echo "Using ldapsearch to check that second slapd is running..."
89 1.1.1.1.6.2 wrstuden for i in 0 1 2 3 4 5; do
90 1.1.1.1.6.2 wrstuden $LDAPSEARCH -s base -b "$MONITOR" -h $LOCALHOST -p $PORT2 \
91 1.1.1.1.6.2 wrstuden 'objectclass=*' > /dev/null 2>&1
92 1.1.1.1.6.2 wrstuden RC=$?
93 1.1.1.1.6.2 wrstuden if test $RC = 0 ; then
94 1.1.1.1.6.2 wrstuden break
95 1.1.1.1.6.2 wrstuden fi
96 1.1.1.1.6.2 wrstuden echo "Waiting 5 seconds for slapd to start..."
97 1.1.1.1.6.2 wrstuden sleep 5
98 1.1.1.1.6.2 wrstuden done
99 1.1.1.1.6.2 wrstuden
100 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
101 1.1.1.1.6.2 wrstuden echo "ldapsearch failed ($RC)!"
102 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
103 1.1.1.1.6.2 wrstuden exit $RC
104 1.1.1.1.6.2 wrstuden fi
105 1.1.1.1.6.2 wrstuden
106 1.1.1.1.6.2 wrstuden for P in $PORT1 $PORT2 ; do
107 1.1.1.1.6.2 wrstuden echo "Testing ldapsearch as anonymous for \"$BASEDN\" on port $P..."
108 1.1.1.1.6.2 wrstuden $LDAPSEARCH -h $LOCALHOST -p $P -b "$BASEDN" -S "" \
109 1.1.1.1.6.2 wrstuden > $SEARCHOUT 2>&1
110 1.1.1.1.6.2 wrstuden
111 1.1.1.1.6.2 wrstuden RC=$?
112 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
113 1.1.1.1.6.2 wrstuden echo "ldapsearch failed ($RC)!"
114 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
115 1.1.1.1.6.2 wrstuden exit $RC
116 1.1.1.1.6.2 wrstuden fi
117 1.1.1.1.6.2 wrstuden
118 1.1.1.1.6.2 wrstuden echo "Filtering ldapsearch results..."
119 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
120 1.1.1.1.6.2 wrstuden echo "Filtering original ldif used to create database..."
121 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $CHAINOUT > $LDIFFLT
122 1.1.1.1.6.2 wrstuden echo "Comparing filter output..."
123 1.1.1.1.6.2 wrstuden $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
124 1.1.1.1.6.2 wrstuden
125 1.1.1.1.6.2 wrstuden if test $? != 0 ; then
126 1.1.1.1.6.2 wrstuden echo "comparison failed - chained search didn't succeed"
127 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
128 1.1.1.1.6.2 wrstuden exit 1
129 1.1.1.1.6.2 wrstuden fi
130 1.1.1.1.6.2 wrstuden
131 1.1.1.1.6.2 wrstuden echo "Reading the referral entry "ou=Other,$BASEDN" as anonymous on port $P..."
132 1.1.1.1.6.2 wrstuden $LDAPSEARCH -h $LOCALHOST -p $P -b "ou=Other,$BASEDN" -S "" \
133 1.1.1.1.6.2 wrstuden > $SEARCHOUT 2>&1
134 1.1.1.1.6.2 wrstuden
135 1.1.1.1.6.2 wrstuden RC=$?
136 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
137 1.1.1.1.6.2 wrstuden echo "ldapsearch failed ($RC)!"
138 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
139 1.1.1.1.6.2 wrstuden exit $RC
140 1.1.1.1.6.2 wrstuden fi
141 1.1.1.1.6.2 wrstuden
142 1.1.1.1.6.2 wrstuden echo "Filtering ldapsearch results..."
143 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
144 1.1.1.1.6.2 wrstuden echo "Filtering original ldif used to create database..."
145 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $CHAINREFOUT > $LDIFFLT
146 1.1.1.1.6.2 wrstuden echo "Comparing filter output..."
147 1.1.1.1.6.2 wrstuden $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
148 1.1.1.1.6.2 wrstuden
149 1.1.1.1.6.2 wrstuden if test $? != 0 ; then
150 1.1.1.1.6.2 wrstuden echo "comparison failed - chained search didn't succeed"
151 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
152 1.1.1.1.6.2 wrstuden exit 1
153 1.1.1.1.6.2 wrstuden fi
154 1.1.1.1.6.2 wrstuden
155 1.1.1.1.6.2 wrstuden DN="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
156 1.1.1.1.6.2 wrstuden echo "Comparing \"$DN\" on port $P..."
157 1.1.1.1.6.2 wrstuden $LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot" \
158 1.1.1.1.6.2 wrstuden > $TESTOUT 2>&1
159 1.1.1.1.6.2 wrstuden
160 1.1.1.1.6.2 wrstuden RC=$?
161 1.1.1.1.6.2 wrstuden if test $RC != 6 ; then
162 1.1.1.1.6.2 wrstuden echo "ldapcompare failed ($RC)!"
163 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
164 1.1.1.1.6.2 wrstuden exit $RC
165 1.1.1.1.6.2 wrstuden fi
166 1.1.1.1.6.2 wrstuden
167 1.1.1.1.6.2 wrstuden DN="ou=Other,$BASEDN"
168 1.1.1.1.6.2 wrstuden echo "Comparing \"$DN\" on port $P with manageDSAit control..."
169 1.1.1.1.6.2 wrstuden $LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other" \
170 1.1.1.1.6.2 wrstuden > $TESTOUT 2>&1
171 1.1.1.1.6.2 wrstuden
172 1.1.1.1.6.2 wrstuden RC=$?
173 1.1.1.1.6.2 wrstuden if test $RC != 6 ; then
174 1.1.1.1.6.2 wrstuden echo "ldapcompare failed ($RC)!"
175 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
176 1.1.1.1.6.2 wrstuden exit $RC
177 1.1.1.1.6.2 wrstuden fi
178 1.1.1.1.6.2 wrstuden done
179 1.1.1.1.6.2 wrstuden
180 1.1.1.1.6.2 wrstuden #
181 1.1.1.1.6.2 wrstuden # Testing writes to first server
182 1.1.1.1.6.2 wrstuden #
183 1.1.1.1.6.2 wrstuden echo "Writing to first server with scope on second server..."
184 1.1.1.1.6.2 wrstuden $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT1 -w $PASSWD > \
185 1.1.1.1.6.2 wrstuden $TESTOUT 2>&1 << EOMODS
186 1.1.1.1.6.2 wrstuden dn: cn=New Group,ou=Groups,dc=example,dc=com
187 1.1.1.1.6.2 wrstuden changetype: add
188 1.1.1.1.6.2 wrstuden objectClass: groupOfNames
189 1.1.1.1.6.2 wrstuden cn: New Group
190 1.1.1.1.6.2 wrstuden member:
191 1.1.1.1.6.2 wrstuden
192 1.1.1.1.6.2 wrstuden dn: cn=New Group,ou=Groups,dc=example,dc=com
193 1.1.1.1.6.2 wrstuden changetype: modify
194 1.1.1.1.6.2 wrstuden add: description
195 1.1.1.1.6.2 wrstuden description: testing chain overlay writes...
196 1.1.1.1.6.2 wrstuden -
197 1.1.1.1.6.2 wrstuden replace: member
198 1.1.1.1.6.2 wrstuden member: cn=New Group,ou=Groups,dc=example,dc=com
199 1.1.1.1.6.2 wrstuden member: cn=Manager,dc=example,dc=com
200 1.1.1.1.6.2 wrstuden -
201 1.1.1.1.6.2 wrstuden add: owner
202 1.1.1.1.6.2 wrstuden owner: cn=Manager,dc=example,dc=com
203 1.1.1.1.6.2 wrstuden -
204 1.1.1.1.6.2 wrstuden
205 1.1.1.1.6.2 wrstuden dn: cn=New Group,ou=Groups,dc=example,dc=com
206 1.1.1.1.6.2 wrstuden changetype: modrdn
207 1.1.1.1.6.2 wrstuden newrdn: cn=Renamed Group
208 1.1.1.1.6.2 wrstuden deleteoldrdn: 1
209 1.1.1.1.6.2 wrstuden
210 1.1.1.1.6.2 wrstuden dn: cn=All Staff,ou=Groups,dc=example,dc=com
211 1.1.1.1.6.2 wrstuden changetype: delete
212 1.1.1.1.6.2 wrstuden EOMODS
213 1.1.1.1.6.2 wrstuden
214 1.1.1.1.6.2 wrstuden RC=$?
215 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
216 1.1.1.1.6.2 wrstuden echo "ldapmodify failed ($RC)!"
217 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
218 1.1.1.1.6.2 wrstuden exit $RC
219 1.1.1.1.6.2 wrstuden fi
220 1.1.1.1.6.2 wrstuden
221 1.1.1.1.6.2 wrstuden #
222 1.1.1.1.6.2 wrstuden # Testing writes to second server
223 1.1.1.1.6.2 wrstuden #
224 1.1.1.1.6.2 wrstuden echo "Writing to second server with scope on first server..."
225 1.1.1.1.6.2 wrstuden $LDAPMODIFY -v -D "$MANAGERDN" -h $LOCALHOST -p $PORT2 -w $PASSWD > \
226 1.1.1.1.6.2 wrstuden $TESTOUT 2>&1 << EOMODS
227 1.1.1.1.6.2 wrstuden dn: cn=New User,ou=People,dc=example,dc=com
228 1.1.1.1.6.2 wrstuden changetype: add
229 1.1.1.1.6.2 wrstuden objectClass: person
230 1.1.1.1.6.2 wrstuden cn: New User
231 1.1.1.1.6.2 wrstuden sn: User
232 1.1.1.1.6.2 wrstuden seeAlso: cn=New Group,ou=Groups,dc=example,dc=com
233 1.1.1.1.6.2 wrstuden
234 1.1.1.1.6.2 wrstuden dn: cn=New User,ou=People,dc=example,dc=com
235 1.1.1.1.6.2 wrstuden changetype: modify
236 1.1.1.1.6.2 wrstuden add: description
237 1.1.1.1.6.2 wrstuden description: testing chain overlay writes...
238 1.1.1.1.6.2 wrstuden -
239 1.1.1.1.6.2 wrstuden replace: seeAlso
240 1.1.1.1.6.2 wrstuden seeAlso: cn=Renamed Group,ou=Groups,dc=example,dc=com
241 1.1.1.1.6.2 wrstuden -
242 1.1.1.1.6.2 wrstuden
243 1.1.1.1.6.2 wrstuden dn: cn=New User,ou=People,dc=example,dc=com
244 1.1.1.1.6.2 wrstuden changetype: modrdn
245 1.1.1.1.6.2 wrstuden newrdn: cn=Renamed User
246 1.1.1.1.6.2 wrstuden deleteoldrdn: 1
247 1.1.1.1.6.2 wrstuden
248 1.1.1.1.6.2 wrstuden dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com
249 1.1.1.1.6.2 wrstuden changetype: delete
250 1.1.1.1.6.2 wrstuden EOMODS
251 1.1.1.1.6.2 wrstuden
252 1.1.1.1.6.2 wrstuden RC=$?
253 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
254 1.1.1.1.6.2 wrstuden echo "ldapmodify failed ($RC)!"
255 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
256 1.1.1.1.6.2 wrstuden exit $RC
257 1.1.1.1.6.2 wrstuden fi
258 1.1.1.1.6.2 wrstuden
259 1.1.1.1.6.2 wrstuden for P in $PORT1 $PORT2 ; do
260 1.1.1.1.6.2 wrstuden echo "Testing ldapsearch as anonymous for \"$BASEDN\" on port $P..."
261 1.1.1.1.6.2 wrstuden $LDAPSEARCH -h $LOCALHOST -p $P -b "$BASEDN" -S "" \
262 1.1.1.1.6.2 wrstuden > $SEARCHOUT 2>&1
263 1.1.1.1.6.2 wrstuden
264 1.1.1.1.6.2 wrstuden RC=$?
265 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
266 1.1.1.1.6.2 wrstuden echo "ldapsearch failed ($RC)!"
267 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
268 1.1.1.1.6.2 wrstuden exit $RC
269 1.1.1.1.6.2 wrstuden fi
270 1.1.1.1.6.2 wrstuden
271 1.1.1.1.6.2 wrstuden echo "Filtering ldapsearch results..."
272 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $SEARCHOUT > $SEARCHFLT
273 1.1.1.1.6.2 wrstuden echo "Filtering original ldif used to create database..."
274 1.1.1.1.6.2 wrstuden . $LDIFFILTER < $CHAINMODOUT > $LDIFFLT
275 1.1.1.1.6.2 wrstuden echo "Comparing filter output..."
276 1.1.1.1.6.2 wrstuden $CMP $SEARCHFLT $LDIFFLT > $CMPOUT
277 1.1.1.1.6.2 wrstuden
278 1.1.1.1.6.2 wrstuden if test $? != 0 ; then
279 1.1.1.1.6.2 wrstuden echo "comparison failed - chained search didn't succeed"
280 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
281 1.1.1.1.6.2 wrstuden exit 1
282 1.1.1.1.6.2 wrstuden fi
283 1.1.1.1.6.2 wrstuden done
284 1.1.1.1.6.2 wrstuden
285 1.1.1.1.6.2 wrstuden NEWPW=newsecret
286 1.1.1.1.6.2 wrstuden echo "Using ldappasswd on second server with scope on first server..."
287 1.1.1.1.6.2 wrstuden $LDAPPASSWD -h $LOCALHOST -p $PORT2 \
288 1.1.1.1.6.2 wrstuden -w secret -s $NEWPW \
289 1.1.1.1.6.2 wrstuden -D "$MANAGERDN" "$BJORNSDN" >> $TESTOUT 2>&1
290 1.1.1.1.6.2 wrstuden RC=$?
291 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
292 1.1.1.1.6.2 wrstuden echo "ldappasswd failed ($RC)!"
293 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
294 1.1.1.1.6.2 wrstuden exit $RC
295 1.1.1.1.6.2 wrstuden fi
296 1.1.1.1.6.2 wrstuden
297 1.1.1.1.6.2 wrstuden echo "Binding with newly changed password on first server..."
298 1.1.1.1.6.2 wrstuden $LDAPWHOAMI -h $LOCALHOST -p $PORT1 \
299 1.1.1.1.6.2 wrstuden -D "$BJORNSDN" -w $NEWPW
300 1.1.1.1.6.2 wrstuden RC=$?
301 1.1.1.1.6.2 wrstuden if test $RC != 0 ; then
302 1.1.1.1.6.2 wrstuden echo "ldapwhoami failed ($RC)!"
303 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
304 1.1.1.1.6.2 wrstuden exit $RC
305 1.1.1.1.6.2 wrstuden fi
306 1.1.1.1.6.2 wrstuden
307 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && kill -HUP $KILLPIDS
308 1.1.1.1.6.2 wrstuden
309 1.1.1.1.6.2 wrstuden echo ">>>>> Test succeeded"
310 1.1.1.1.6.2 wrstuden
311 1.1.1.1.6.2 wrstuden test $KILLSERVERS != no && wait
312 1.1.1.1.6.2 wrstuden
313 1.1.1.1.6.2 wrstuden exit 0
314