diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-10-30 18:08:17 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-16 16:02:41 +0100 |
commit | 51bb05f2860ed086ea8ef502eb4120c952e110dd (patch) | |
tree | ed9775a16fd25bb98b9ffae04f2ff76ec4dfd7c4 /travis/setup-ldap.sh | |
parent | 791d633b8aad5e29d1c1a9fda844908d694a8341 (diff) | |
download | forums-51bb05f2860ed086ea8ef502eb4120c952e110dd.tar forums-51bb05f2860ed086ea8ef502eb4120c952e110dd.tar.gz forums-51bb05f2860ed086ea8ef502eb4120c952e110dd.tar.bz2 forums-51bb05f2860ed086ea8ef502eb4120c952e110dd.tar.xz forums-51bb05f2860ed086ea8ef502eb4120c952e110dd.zip |
[ticket/12574] Introduce files for LDAP testing on travis
PHPBB3-12574
Diffstat (limited to 'travis/setup-ldap.sh')
-rwxr-xr-x | travis/setup-ldap.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/travis/setup-ldap.sh b/travis/setup-ldap.sh new file mode 100755 index 0000000000..a8f4fddc49 --- /dev/null +++ b/travis/setup-ldap.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# +# This file is part of the phpBB Forum Software package. +# +# @copyright (c) phpBB Limited <https://www.phpbb.com> +# @license GNU General Public License, version 2 (GPL-2.0) +# +# For full copyright and license information, please see +# the docs/CREDITS.txt file. +# +set -e +set -x + +SLOWTESTS=$1 + +if [ "$SLOWTESTS" == '1' ] +then + sudo apt-get -y install ldap-utils slapd + echo "extension = ldap.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + mkdir /tmp/slapd + slapd -f travis/ldap/slapd.conf -h ldap://localhost:3389 & + sleep 3 + ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f travis/ldap/base.ldif +fi |