forked from irasnyd/freeradius-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 876 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:22.04
ENTRYPOINT [ "/init" ]
# RADIUS Authentication Messages
EXPOSE 1812/udp
# RADIUS Accounting Messages
EXPOSE 1813/udp
# Install freeradius with ldap support
RUN apt-get update && apt-get install -y \
freeradius \
freeradius-common \
freeradius-krb5 \
freeradius-ldap \
freeradius-utils \
&& rm -rf /var/lib/apt/lists/*
# Copy our configuration
COPY config/clients.conf /etc/freeradius/3.0/
COPY config/ldap /etc/freeradius/3.0/mods-available/
COPY config/default /etc/freeradius/3.0/sites-available/
COPY config/inner-tunnel /etc/freeradius/3.0/sites-available/
COPY config/users /etc/freeradius/3.0/
RUN ln -s /etc/freeradius/3.0/mods-available/ldap /etc/freeradius/3.0/mods-enabled/ldap
# Create Certificate
RUN cd /etc/freeradius/3.0/certs && make
COPY init /
# CMD ["/bin/bash"]
# CMD ["/usr/sbin/freeradius", "-x", "-f", "-l stdout"]