ldap (latest-x86_64)
Installation
docker pull gitea.dege.au/docker/ldap:latest-x86_64
sha256:05007cf1790880d422b6ec79b62cd022e8a68715d1471535a8b0e91e5acaef81
Image Layers
ADD alpine-minirootfs-3.21.0-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
RUN /bin/sh -c if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositories; fi # buildkit |
RUN /bin/sh -c apk add --no-cache bash openldap openldap-back-mdb openldap-clients openldap-overlay-syncprov openldap-overlay-accesslog # buildkit |
ADD schema /etc/openldap/schema/custom # buildkit |
ADD tls /etc/openldap/tls # buildkit |
RUN /bin/sh -c sed -i -e 's/dc=my-domain,dc=com/c=AU/' /etc/openldap/slapd.ldif && sed -i -e 's/openldap-data/data/' /etc/openldap/slapd.ldif && mv /var/lib/openldap/openldap-data /var/lib/openldap/data && mkdir /etc/openldap/slapd.d /etc/openldap/schema/add.d /etc/openldap/schema/modify.d /etc/openldap/schema/data.d && ln -s ../misc.ldif /etc/openldap/schema/add.d/01-misc.ldif && ln -s ../custom/samba.ldif /etc/openldap/schema/add.d/02-samba.ldif && ln -s ../custom/wurley.ldif /etc/openldap/schema/add.d/10-wurley.ldif && ln -s ../custom/syncprov-enable.ldif /etc/openldap/schema/modify.d/20-syncprov-enable.ldif && ln -s ../custom/syncprov-options.ldif /etc/openldap/schema/modify.d/21-syncprov-options.ldif && ln -s ../custom/syncprov-index.ldif /etc/openldap/schema/modify.d/22-syncprov-index.ldif && ln -s ../custom/certinfo.ldif /etc/openldap/schema/modify.d/23-certinfo.ldif && ln -s ../custom/acl-schema.ldif /etc/openldap/schema/modify.d/90-acl-schema.ldif && ln -s ../custom/acl-data.ldif /etc/openldap/schema/modify.d/91-acl-data.ldif && mkdir /var/lib/openldap/run && chown -R ldap:ldap /etc/openldap/slapd.d /var/lib/openldap/data /var/lib/openldap/run # buildkit |
ENV SLAPD_CONFIG=/etc/openldap/slapd.d/cn=config |
COPY docker/init-docker /sbin/ # buildkit |
ENTRYPOINT ["/sbin/init-docker"] |
VOLUME [/var/lib/openldap/data] |
EXPOSE map[389/tcp:{} 636/tcp:{}] |
Details
Versions (3)
View all