Skip to content

Commit 14ca000

Browse files
committed
add pqChecker
1 parent 2771c1b commit 14ca000

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
## Added
99
- Support for docker secrets #325. Thanks to @anagno !
1010
- Add DISABLE_CHOWN environment variable #240
11+
- pqChecker lib to check passwords strength with ppolicy pwdCheckModule
1112

1213
### Fixed
1314
- Fix of incorrectly positioned 'log-helper debug' command #327. Thanks to @turcan !

image/Dockerfile

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ FROM osixia/light-baseimage:1.1.2
55
ARG LDAP_OPENLDAP_GID
66
ARG LDAP_OPENLDAP_UID
77

8+
ARG PQCHECKER_VERSION=2.0.0
9+
ARG PQCHECKER_MD5=c005ce596e97d13e39485e711dcbc7e1
10+
811
# Add openldap user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
912
# If explicit uid or gid is given, use it.
1013
RUN if [ -z "${LDAP_OPENLDAP_GID}" ]; then groupadd -r openldap; else groupadd -r -g ${LDAP_OPENLDAP_GID} openldap; fi \
@@ -18,17 +21,24 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s
1821
#  https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:ssl-tools/download.sh
1922
RUN echo "path-include /usr/share/doc/krb5*" >> /etc/dpkg/dpkg.cfg.d/docker && apt-get -y update \
2023
&& /container/tool/add-service-available :ssl-tools \
21-
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get -t stretch-backports install -y --no-install-recommends \
22-
ldap-utils \
23-
libsasl2-modules \
24-
libsasl2-modules-db \
25-
libsasl2-modules-gssapi-mit \
26-
libsasl2-modules-ldap \
27-
libsasl2-modules-otp \
28-
libsasl2-modules-sql \
29-
openssl \
30-
slapd \
31-
krb5-kdc-ldap \
24+
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get -t stretch-backports install -y --no-install-recommends \
25+
ca-certificates \
26+
curl \
27+
ldap-utils \
28+
libsasl2-modules \
29+
libsasl2-modules-db \
30+
libsasl2-modules-gssapi-mit \
31+
libsasl2-modules-ldap \
32+
libsasl2-modules-otp \
33+
libsasl2-modules-sql \
34+
openssl \
35+
slapd \
36+
krb5-kdc-ldap \
37+
&& curl -o pqchecker.deb -SL http://www.meddeb.net/pub/pqchecker/deb/8/pqchecker_${PQCHECKER_VERSION}_amd64.deb \
38+
&& echo "${PQCHECKER_MD5} *pqchecker.deb" | md5sum -c - \
39+
&& dpkg -i pqchecker.deb \
40+
&& rm pqchecker.deb \
41+
&& apt-get remove -y --purge --auto-remove curl ca-certificates \
3242
&& apt-get clean \
3343
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3444

0 commit comments

Comments
 (0)