Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c20d1b1

Browse files
author
Kyle Evans
committed
[Ldap] Prepare test setup for pagination testing
The ldif backend does not support pagination, unfortunately, so make the switch to mdb. mdb should be generally available enough for this to work.
1 parent c2ca123 commit c20d1b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ before_install:
6262
set -e
6363
stty cols 120
6464
mkdir /tmp/slapd
65+
if [ ! -e /tmp/slapd-modules ]; then
66+
[ -d /usr/lib/openldap ] && ln -s /usr/lib/openldap /tmp/slapd-modules || ln -s /usr/lib/ldap /tmp/slapd-modules
67+
fi
6568
slapd -f src/Symfony/Component/Ldap/Tests/Fixtures/conf/slapd.conf -h ldap://localhost:3389 &
6669
[ -d ~/.composer ] || mkdir ~/.composer
6770
cp .composer/* ~/.composer/

src/Symfony/Component/Ldap/Tests/Fixtures/conf/slapd.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ include /etc/ldap/schema/nis.schema
77
pidfile /tmp/slapd/slapd.pid
88
argsfile /tmp/slapd/slapd.args
99

10-
modulepath /usr/lib/openldap
10+
modulepath /tmp/slapd-modules
11+
moduleload back_hdb
1112

12-
database ldif
13+
database hdb
1314
directory /tmp/slapd
1415

1516
suffix "dc=symfony,dc=com"

0 commit comments

Comments
 (0)