Skip to content

Commit c3f0e4c

Browse files
committed
docker openldap server
instead of polluting devs machine, let's rely on a docker container to spin up the service relies on osixia/openldap:1.3.0. Customizes a few things: - adds the seed on bootstrap - does not enforce client certificate - sets a hostname to avoid domain verification issues during handshake The cert domain is also added to /etc/hosts
1 parent 9daa954 commit c3f0e4c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ rvm:
99
- jruby-head
1010
- rbx-2
1111

12+
services:
13+
- docker
14+
1215
env:
1316
- INTEGRATION=openldap
1417

1518
before_install:
1619
- gem update bundler
20+
- echo "127.0.0.1 ldap.example.org" >> /etc/hosts
1721

1822
install:
19-
- if [ "$INTEGRATION" = "openldap" ]; then sudo script/install-openldap; fi
23+
- docker run --hostname ldap.example.org --env LDAP_TLS_VERIFY_CLIENT=try -p 389:389 -p 636:636 -v $(pwd)/test/fixtures/seed.ldif:/container/service/slapd/assets/config/bootstrap/ldif/50-bootstrap.ldif --name openldap osixia/openldap:1.3.0 --copy-service --loglevel debug
24+
- docker cp openldap:/container/run/service/:ssl-tools/assets/default-ca/default-ca.pem /tmp/openldap-ca.pem
2025
- bundle install
2126

2227
script: bundle exec rake ci

0 commit comments

Comments
 (0)