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:
Nikos Mavrogiannopoulos
2016-04-17 12:13:38 +02:00
parent 0561534639
commit 5ea4b32f4d
3 changed files with 6 additions and 2 deletions

View File

@@ -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 libtalloc2 liblz4-1 freeradius libradcli4
RUN apt-get install -y libkrb5-3 less 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/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 echo 'root:root' |chpasswd
RUN useradd -m -d /home/admin -s /bin/bash admin RUN useradd -m -d /home/admin -s /bin/bash admin
RUN echo 'admin:admin' |chpasswd RUN echo 'admin:admin' |chpasswd
RUN mkdir /etc/ocserv RUN mkdir /etc/ocserv
RUN mv /var/log/freeradius /var/log/radius
ADD ca.pem /etc/ocserv/ ADD ca.pem /etc/ocserv/

View File

@@ -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 libtalloc2 liblz4-1 less
RUN apt-get install -y freeradius libradcli4 RUN apt-get install -y freeradius libradcli4
RUN sed 's/PermitRootLogin without-password/PermitRootLogin yes/g' -i /etc/ssh/sshd_config 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 echo 'root:root' |chpasswd
RUN useradd -m -d /home/admin -s /bin/bash admin RUN useradd -m -d /home/admin -s /bin/bash admin
RUN echo 'admin:admin' |chpasswd RUN echo 'admin:admin' |chpasswd
RUN mkdir /etc/ocserv RUN mkdir /etc/ocserv
RUN mv /var/log/freeradius /var/log/radius
ADD ca.pem /etc/ocserv/ ADD ca.pem /etc/ocserv/

View File

@@ -34,12 +34,12 @@ issue /etc/radiusclient/issue
# RADIUS listens separated by a colon from the hostname. if # RADIUS listens separated by a colon from the hostname. if
# no port is specified /etc/services is consulted of the radius # no port is specified /etc/services is consulted of the radius
# service. if this fails also a compiled in default is used. # 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 # RADIUS server to use for accouting requests. All that I
# said for authserver applies, too. # said for authserver applies, too.
# #
acctserver localhost acctserver 127.0.0.1
# file holding shared secrets used for the communication # file holding shared secrets used for the communication
# between the RADIUS client and server # between the RADIUS client and server