1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-06 11:07:47 +02:00

fix /etc/hosts for test env

This commit is contained in:
kakwa 2015-06-17 19:40:01 +02:00
parent c2288eecf5
commit ce357dbdc7

View File

@ -33,7 +33,7 @@ chown -R openldap:openldap /etc/ldap/
rm /etc/ldap/slapd.d/cn\=config/*mdb*
/etc/init.d/slapd restart
ldapadd -c -H ldap://localhost:390 -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 ad.ldapcherry.org/" /etc/hosts
sed -i "s/\(127.0.0.1.*\)/\1 ldap.ldapcherry.org ad.ldapcherry.org ldap.dnscherry.org/" /etc/hosts
df -h