2025-03-27 15:44:28 +00:00
|
|
|
# Pull base image from authorized source
|
2026-02-01 20:43:07 -06:00
|
|
|
FROM harbor.maximumdirect.net/proxy-dockerhub/ubuntu:24.04
|
2025-03-27 15:44:28 +00:00
|
|
|
|
|
|
|
|
LABEL description="OpenLDAP" \
|
|
|
|
|
maintainer="Eric Rakestraw <eric@maximumdirect.net>" \
|
|
|
|
|
version="Ubuntu 24.04"
|
|
|
|
|
|
2026-02-01 21:08:53 -06:00
|
|
|
# Create the necesary directories for slapd
|
2026-02-01 21:33:58 -06:00
|
|
|
RUN mkdir -p /run/slapd
|
2026-02-01 21:40:29 -06:00
|
|
|
RUN ln -sf /run /var/run
|
2026-02-01 21:08:53 -06:00
|
|
|
|
2025-03-27 15:44:28 +00:00
|
|
|
# Install the necessary packages for LDAP Proxy server
|
2026-02-01 21:06:09 -06:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
RUN apt-get -q update
|
|
|
|
|
RUN apt-get install -q --yes slapd ldap-utils
|
|
|
|
|
RUN apt-get install -q --yes slapd-contrib
|
2025-03-27 15:44:28 +00:00
|
|
|
|
|
|
|
|
# Remove the slapd.d directory, since we will be using slapd.conf.
|
|
|
|
|
RUN rm -rf /etc/ldap/slapd.d
|
|
|
|
|
|
|
|
|
|
# Run with debug enabled; this will print logs to STDOUT.
|
|
|
|
|
CMD ["/usr/sbin/slapd", "-d1"]
|