~ubuntu-branches/ubuntu/trusty/openldap/trusty-updates

« back to all changes in this revision

Viewing changes to tests/scripts/test049-sync-config

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-01-23 10:01:13 UTC
  • mfrom: (1.3.4)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: package-import@ubuntu.com-20120123100113-z3mg83hvuplv9lyj
Tags: upstream-2.4.28
ImportĀ upstreamĀ versionĀ 2.4.28

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# $OpenLDAP: pkg/ldap/tests/scripts/test049-sync-config,v 1.4.2.16 2011/01/11 19:45:58 quanah Exp $
 
2
# $OpenLDAP$
3
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
##
5
5
## Copyright 1998-2011 The OpenLDAP Foundation.
227
227
dn: cn=module,cn=config
228
228
objectClass: olcModuleList
229
229
cn: module
230
 
olcModulePath: ../../../servers/slapd/back-$BACKEND
 
230
olcModulePath: $TESTWD/../servers/slapd/back-$BACKEND
231
231
olcModuleLoad: back_$BACKEND.la
232
232
EOF
233
233
        RC=$?
265
265
        exit $RC
266
266
fi
267
267
 
268
 
case $BACKEND in
269
 
bdb | hdb)
 
268
if test $INDEXDB = indexdb ; then
270
269
        $LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <<EOF >>$TESTOUT 2>&1
271
270
dn: olcDatabase={1}$BACKEND,cn=config
272
271
changetype: modify
280
279
                test $KILLSERVERS != no && kill -HUP $KILLPIDS
281
280
                exit $RC
282
281
        fi
283
 
        ;;
284
 
esac
 
282
fi
285
283
 
286
284
echo "Using ldapadd to populate provider..."
287
285
$LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \