Skip to content

Commit 7d3a0f1

Browse files
committed
Enable Debian backport repo and install the far newer openldap components
1 parent 3596917 commit 7d3a0f1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

image/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ ARG LDAP_OPENLDAP_UID
1111
RUN if [ -z "${LDAP_OPENLDAP_GID}" ]; then groupadd -r openldap; else groupadd -r -g ${LDAP_OPENLDAP_GID} openldap; fi \
1212
&& if [ -z "${LDAP_OPENLDAP_UID}" ]; then useradd -r -g openldap openldap; else useradd -r -g openldap -u ${LDAP_OPENLDAP_UID} openldap; fi
1313

14-
# Install OpenLDAP, ldap-utils and ssl-tools from baseimage and clean apt-get files
14+
# Add stretch-backports in preparation for downloading newer openldap components, especially sladp
15+
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
16+
17+
# Install OpenLDAP, ldap-utils and ssl-tools from the (backported) baseimage and clean apt-get files
1518
# sources: https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-service-available
1619
#  https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:ssl-tools/download.sh
1720
RUN echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker && apt-get -y update \
1821
&& /container/tool/add-service-available :ssl-tools \
19-
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
22+
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get -t stretch-backports install -y --no-install-recommends \
2023
ldap-utils \
2124
libsasl2-modules \
2225
libsasl2-modules-db \

0 commit comments

Comments
 (0)