daemon.sh 327 B

12345678
  1. #!/bin/bash -e
  2. # Reduce maximum number of number of open file descriptors to 1024
  3. # otherwise slapd consumes two orders of magnitude more of RAM
  4. # see https://github.com/docker/docker/issues/8231
  5. ulimit -n 1024
  6. exec /usr/sbin/slapd -h "ldap://$HOSTNAME ldaps://$HOSTNAME ldapi:///" -u openldap -g openldap -d $LDAP_LOG_LEVEL