All checks were successful
continuous-integration/drone/push Build is passing
Add environmental variable to configure LDAP
30 lines
602 B
Docker
30 lines
602 B
Docker
FROM ubuntu:noble as linux
|
|
|
|
MAINTAINER Eric Coissac "eric@coissac.eu"
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
openssh-server \
|
|
sssd-ldap \
|
|
ldap-utils \
|
|
ldapscripts \
|
|
&& apt-get clean
|
|
|
|
# RUN systemctl start sssd.service
|
|
# RUN pam-auth-update --enable mkhomedir
|
|
|
|
|
|
ENV LANG=fr_FR.UTF-8
|
|
ENV LDAP_URI="ldap://192.168.0.29"
|
|
ENV LDAP_DOMAIN="coissac.eu"
|
|
ENV LDAP_SEARCH_BASE="ou=people,dc=coissac,dc=eu"
|
|
ENV LDAP_FILTER="memberof=cn=ssh,ou=people,dc=coissac,dc=eu"
|
|
|
|
RUN mkdir -p /var/run/sshd
|
|
ADD init.sh /init.sh
|
|
RUN chmod u+x /init.sh
|
|
|
|
EXPOSE 22
|
|
|
|
CMD /init.sh
|