2022-02-11 12:42:45 +01:00
|
|
|
FROM mariadb:10.4.22
|
2019-09-02 09:46:57 +00:00
|
|
|
|
|
|
|
LABEL Maintainer="Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>"
|
|
|
|
|
|
|
|
ENV LDAPBASE "DC=hottis,DC=de"
|
|
|
|
ENV LDAPURI "ldap://ldap.hottis.de:389"
|
|
|
|
ENV LDAPBINDDB ""
|
|
|
|
ENV LDAPBINDPW ""
|
|
|
|
|
|
|
|
RUN \
|
2022-02-11 12:42:45 +01:00
|
|
|
apt update && \
|
|
|
|
env DEBIAN_FRONTEND=noninteractive apt -yq install libpam-ldap && \
|
|
|
|
env DEBIAN_FRONTEND=noninteractive apt -yq install pamtester
|
2019-09-02 09:46:57 +00:00
|
|
|
|
|
|
|
COPY docker-entrypoint.sh-head /usr/local/bin
|
2019-09-02 10:48:39 +00:00
|
|
|
COPY pam.conf-tail /etc
|
|
|
|
COPY ldap.conf-tmpl /etc
|
|
|
|
COPY load_pam_plugin.cnf /etc/mysql/conf.d
|
2019-09-02 09:46:57 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
cd /usr/local/bin && \
|
|
|
|
tail -n +2 docker-entrypoint.sh > docker-entrypoint.sh-tail && \
|
|
|
|
cat docker-entrypoint.sh-head docker-entrypoint.sh-tail > docker-entrypoint.sh && \
|
|
|
|
cd /etc && \
|
2019-09-02 11:36:39 +00:00
|
|
|
cat pam.conf-tail >> pam.conf && \
|
|
|
|
chmod 644 /etc/mysql/conf.d/load_pam_plugin.cnf
|
2019-09-02 09:46:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|