1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-21 17:04:21 +01:00

deployement of ldap

This commit is contained in:
pcarpent 2015-04-14 16:04:33 +02:00
parent 5d92a0fdbf
commit 8603f3f884
3 changed files with 24 additions and 3 deletions

18
.travis.yml Normal file
View File

@ -0,0 +1,18 @@
before_install:
- sudo apt-get update -qq
- sudo apt-get install ldap-utils
- sudo apt-get install python-ldap
- sudo DEBIAN_FRONTEND=noninteractive apt-get install slapd -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
- sudo ./tests/cfg/deploy.sh
language: python
python:
- "2.7"
- "3.2"
- "3.3"
# command to install dependencies
install:
- pip install -e . --use-mirrors
- pip install passlib
# command to run tests
script: "./run_test.sh"

3
run_test.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cd `dirname $0`
python setup.py test

View File

@ -1,11 +1,11 @@
#!/bin/sh
sudo rsync -a `dirname $0`/ /
rsync -a `dirname $0`/ /
cd `dirname $0`/../../
sudo sed -i "s%template_dir.*%template_dir = '`pwd`/resources/templates/'%" /etc/ldapcherry/ldapcherry.ini
sudo sed -i "s%tools.staticdir.dir.*%tools.staticdir.dir = '`pwd`/resources/static/'%" /etc/ldapcherry/ldapcherry.ini
sudo chown -R openldap:openldap /etc/ldap/
sudo /etc/init.d/slapd restart
chown -R openldap:openldap /etc/ldap/
/etc/init.d/slapd restart
ldapadd -H ldap://localhost -x -D "cn=admin,dc=example,dc=org" -f /etc/ldap/content.ldif -w password
sed -i "s/\(127.0.0.1.*\)/\1 ldap.ldapcherry.org/" /etc/hosts