To run:
- Make sure you have Docker installed!
- Run
docker-compose up
in the directory - Run the following commands in this order:
docker exec openldap ldapadd -x -D "cn=admin,dc=northwestern,dc=edu" -x -w 'password' -f /data/1.nu.ldif
docker exec openldap ldapadd -Q -Y EXTERNAL -H ldapi:/// -f /data/2.schema.ldif
docker exec openldap ldapadd -x -D "cn=admin,dc=northwestern,dc=edu" -x -w 'password' -f /data/3.entries.ldif
- The default user password is
password
, to generate a new one type:
docker exec -it openldap bash
sldappasswd
- To run tests locally, make sure you have something like this in your
.bashrc
/.zshrc
/fish shell equivalent
export MY_APP_DATABASE_URL="postgres://postgres@localhost/cdsi_example_dev"