Compare commits
No commits in common. "c7bf603ce197f2bbc219f9b23fe026b1b1be1892" and "195962c29182383e255b920a01bbd4e7803f2b75" have entirely different histories.
c7bf603ce1
...
195962c291
3 changed files with 4 additions and 5 deletions
|
|
@ -3,7 +3,6 @@ FROM debian:stable-slim
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD ["/usr/sbin/saslauthd", "-d", "-a", "ldap", "-O", "/etc/sasl2/saslauthd.conf"]
|
CMD ["/usr/sbin/saslauthd", "-d", "-a", "ldap", "-O", "/etc/sasl2/saslauthd.conf"]
|
||||||
|
|
||||||
COPY smtpd.conf /etc/sasl2/smtpd.conf
|
|
||||||
COPY entrypoint.sh /docker-entrypoint.sh
|
COPY entrypoint.sh /docker-entrypoint.sh
|
||||||
|
|
||||||
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y ca-certificates sasl2-bin libsasl2-modules-ldap && rm -rf /var/lib/apt/lists/*
|
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y sasl2-bin libsasl2-modules-ldap && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p /etc/sasl2/
|
||||||
|
|
||||||
cat <<EOF > /etc/sasl2/saslauthd.conf
|
cat <<EOF > /etc/sasl2/saslauthd.conf
|
||||||
ldap_servers: ${LDAP_SERVERS}
|
ldap_servers: ${LDAP_SERVERS}
|
||||||
ldap_search_base: ${LDAP_SEARCH_BASE}
|
ldap_search_base: ${LDAP_SEARCH_BASE}
|
||||||
|
|
@ -10,7 +12,7 @@ ldap_bind_pw: ${LDAP_BIND_PW}
|
||||||
ldap_auth_method: ${LDAP_AUTH_METHOD:-bind}
|
ldap_auth_method: ${LDAP_AUTH_METHOD:-bind}
|
||||||
ldap_deref: ${LDAP_DEREF:-find}
|
ldap_deref: ${LDAP_DEREF:-find}
|
||||||
ldap_ssl: ${LDAP_SSL:-on}
|
ldap_ssl: ${LDAP_SSL:-on}
|
||||||
ldap_tls_cacert_file: ${LDAP_TLS_CACERT_FILE:-/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt}
|
ldap_tls_cacert_dir: ${LDAP_TLS_CACERT_DIR:-/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt}
|
||||||
|
|
||||||
ldap_group_attr: ${LDAP_GROUP_ATTR:-member}
|
ldap_group_attr: ${LDAP_GROUP_ATTR:-member}
|
||||||
ldap_group_dn: ${LDAP_GROUP_DN}
|
ldap_group_dn: ${LDAP_GROUP_DN}
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
pwcheck_method:saslauthd
|
|
||||||
mech_list: PLAIN LOGIN
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue