mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
tests: use 127.0.0.1 for debian radiusclient conf
That is because freeradius listens to IPv4 by default. Also adjusted the default log directory to match the Fedora's one and simplify the test.
This commit is contained in:
@@ -8,12 +8,14 @@ RUN apt-get install -y libsystemd0 valgrind nuttcp openssh-server bash
|
||||
RUN apt-get install -y libtalloc2 liblz4-1 freeradius libradcli4
|
||||
RUN apt-get install -y libkrb5-3 less
|
||||
RUN sed 's/PermitRootLogin without-password/PermitRootLogin yes/g' -i /etc/ssh/sshd_config
|
||||
RUN sed 's|/var/log/freeradius|/var/log/radius|g' -i /etc/freeradius/radiusd.conf
|
||||
|
||||
RUN echo 'root:root' |chpasswd
|
||||
RUN useradd -m -d /home/admin -s /bin/bash admin
|
||||
RUN echo 'admin:admin' |chpasswd
|
||||
|
||||
RUN mkdir /etc/ocserv
|
||||
RUN mv /var/log/freeradius /var/log/radius
|
||||
|
||||
|
||||
ADD ca.pem /etc/ocserv/
|
||||
|
||||
@@ -8,12 +8,14 @@ RUN apt-get install -y libsystemd0 valgrind nuttcp openssh-server bash
|
||||
RUN apt-get install -y libtalloc2 liblz4-1 less
|
||||
RUN apt-get install -y freeradius libradcli4
|
||||
RUN sed 's/PermitRootLogin without-password/PermitRootLogin yes/g' -i /etc/ssh/sshd_config
|
||||
RUN sed 's|/var/log/freeradius|/var/log/radius|g' -i /etc/freeradius/radiusd.conf
|
||||
|
||||
RUN echo 'root:root' |chpasswd
|
||||
RUN useradd -m -d /home/admin -s /bin/bash admin
|
||||
RUN echo 'admin:admin' |chpasswd
|
||||
|
||||
RUN mkdir /etc/ocserv
|
||||
RUN mv /var/log/freeradius /var/log/radius
|
||||
|
||||
|
||||
ADD ca.pem /etc/ocserv/
|
||||
|
||||
@@ -34,12 +34,12 @@ issue /etc/radiusclient/issue
|
||||
# RADIUS listens separated by a colon from the hostname. if
|
||||
# no port is specified /etc/services is consulted of the radius
|
||||
# service. if this fails also a compiled in default is used.
|
||||
authserver localhost
|
||||
authserver 127.0.0.1
|
||||
|
||||
# RADIUS server to use for accouting requests. All that I
|
||||
# said for authserver applies, too.
|
||||
#
|
||||
acctserver localhost
|
||||
acctserver 127.0.0.1
|
||||
|
||||
# file holding shared secrets used for the communication
|
||||
# between the RADIUS client and server
|
||||
|
||||
Reference in New Issue
Block a user