OpenLDAP server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
706 B

COPY debconf-selections /etc/debconf-slapd-selections
RUN debconf-set-selections /etc/debconf-slapd-selections
RUN apt-get update && \
apt-get install -y --no-install-recommends slapd && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN chmod -R o+rw /etc/ldap/slapd.d/ && \
chmod o+rwx /etc/ldap/slapd.d/cn=config/ && \
chmod o+rwx /etc/ldap/slapd.d/cn=config/cn=schema/ && \
chmod o+rw /var/run/slapd/
COPY sindominio.schema /etc/ldap/schema/
COPY sindominio.ldif /etc/ldap/schema/
RUN slapd -T add -n 0 -l /etc/ldap/schema/sindominio.ldif
VOLUME ["/var/lib/ldap"]
ENTRYPOINT ["/usr/sbin/slapd"]
CMD ["-h", "ldap://", "-dNone"]