1
0
Fork 0
mirror of https://github.com/kakwa/ldapcherry synced 2025-07-03 11:57:41 +02: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

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