diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-10-31 15:43:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-10-31 15:43:21 +0000 |
commit | 786e3cff10f2c6989162f5dacc9547914dd09f76 (patch) | |
tree | d2ada0edec51429a580ac3401952c6c39279d4c5 /test/travis | |
parent | 7019f3416a5dd61064f7536922bc187c078c9997 (diff) | |
download | redmine-786e3cff10f2c6989162f5dacc9547914dd09f76.tar.gz redmine-786e3cff10f2c6989162f5dacc9547914dd09f76.zip |
run LDAP tests on Travis CI
git-svn-id: http://svn.redmine.org/redmine/trunk@14785 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/travis')
-rw-r--r-- | test/travis/install-openldap.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/travis/install-openldap.sh b/test/travis/install-openldap.sh new file mode 100644 index 000000000..b0ad70b64 --- /dev/null +++ b/test/travis/install-openldap.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes slapd ldap-utils +dpkg -l *slapd* *ldap-utils* + +TOP_DIR=`dirname $0`/../.. + +/etc/init.d/slapd stop + +rm -rf /etc/ldap/slapd.d/* +rmdir /etc/ldap/slapd.d/ +rm -rf /var/lib/ldap/* + +cp ${TOP_DIR}/test/fixtures/ldap/slapd.ubuntu.12.04.conf /etc/ldap/slapd.conf +slaptest -u -v -f /etc/ldap/slapd.conf + +/etc/init.d/slapd start + +ldapadd -x -D "cn=Manager,dc=redmine,dc=org" \ + -w secret -h localhost -p 389 -f ${TOP_DIR}/test/fixtures/ldap/test-ldap.ldif |