254
254
olcDLattrSet: {0}
256
256
add: olcDLattrSet
257
olcDLattrSet: groupOfURLs memberURL sn:cn mail
261
echo "==========================================================" >> $LOG1
263
echo "Testing attribute mapping"
265
echo "Testing list search of all (mapped) attrs..."
266
echo "# Testing list search of all (mapped) attrs..." >> $SEARCHOUT
267
$LDAPSEARCH -S "" -b "$LISTDN" -h $LOCALHOST -p $PORT1 \
268
'(cn=Dynamic List)' '*' \
271
if test $RC != 0 ; then
272
echo "ldapsearch failed ($RC)!"
273
test $KILLSERVERS != no && kill -HUP $KILLPIDS
277
echo "Testing list search of a (mapped) listed attr..."
278
echo "# Testing list search of a (mapped) listed attr..." >> $SEARCHOUT
279
$LDAPSEARCH -S "" -b "$LISTDN" -h $LOCALHOST -p $PORT1 \
280
'(cn=Dynamic List)' sn \
283
if test $RC != 0 ; then
284
echo "ldapsearch failed ($RC)!"
285
test $KILLSERVERS != no && kill -HUP $KILLPIDS
289
echo "Testing list search of a (n unmapped) listed attr..."
290
echo "# Testing list search of a (n unmapped) listed attr..." >> $SEARCHOUT
291
$LDAPSEARCH -S "" -b "$LISTDN" -h $LOCALHOST -p $PORT1 \
292
'(cn=Dynamic List)' mail \
295
if test $RC != 0 ; then
296
echo "ldapsearch failed ($RC)!"
297
test $KILLSERVERS != no && kill -HUP $KILLPIDS
301
echo "Testing list compare (mapped attrs) ..."
302
echo "# Testing list compare (mapped attrs) ..." >> $SEARCHOUT
303
$LDAPCOMPARE -h $LOCALHOST -p $PORT1 \
304
"cn=Dynamic List,$LISTDN" "sn:Bjorn Jensen" \
309
echo "ldapcompare returned FALSE ($RC)!"
310
test $KILLSERVERS != no && kill -HUP $KILLPIDS
314
echo "ldapcompare returned TRUE ($RC)"
317
echo "ldapcompare returned success ($RC)!"
318
test $KILLSERVERS != no && kill -HUP $KILLPIDS
322
echo "ldapcompare failed ($RC)!"
323
test $KILLSERVERS != no && kill -HUP $KILLPIDS
327
echo "" >> $SEARCHOUT
329
echo "Testing list compare (mapped attrs; should return FALSE)..."
330
echo "# Testing list compare (mapped attrs; should return FALSE)..." >> $SEARCHOUT
331
$LDAPCOMPARE -h $LOCALHOST -p $PORT1 \
332
"cn=Dynamic List,$LISTDN" "sn:FALSE" \
337
echo "ldapcompare returned FALSE ($RC)"
340
echo "ldapcompare returned TRUE ($RC)!"
341
test $KILLSERVERS != no && kill -HUP $KILLPIDS
345
echo "ldapcompare returned success ($RC)!"
346
test $KILLSERVERS != no && kill -HUP $KILLPIDS
350
echo "ldapcompare failed ($RC)!"
351
test $KILLSERVERS != no && kill -HUP $KILLPIDS
355
echo "" >> $SEARCHOUT
357
echo "Reconfiguring slapd..."
358
$LDAPMODIFY -x -D cn=config -h $LOCALHOST -p $PORT1 -y $CONFIGPWF > \
359
$TESTOUT 2>&1 << EOMODS
361
dn: olcOverlay={0}dynlist,olcDatabase={2}$BACKEND,cn=config
257
367
olcDLattrSet: groupOfURLs memberURL member
260
371
echo "==========================================================" >> $LOG1