Skip to content

Commit 9820e3d

Browse files
committed
Merge branch 'testing-stretch'
Use Debian stretch as base image for the testing environment.
2 parents cbe9e57 + 48afa6b commit 9820e3d

File tree

328 files changed

+1315
-11692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+1315
-11692
lines changed

src/libimcv/imv/data.sql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,24 @@ INSERT INTO products ( /* 96 */
574574
'Ubuntu 18.04 x86_64'
575575
);
576576

577+
INSERT INTO products ( /* 97 */
578+
name
579+
) VALUES (
580+
'Debian 9.5 i686'
581+
);
582+
583+
INSERT INTO products ( /* 98 */
584+
name
585+
) VALUES (
586+
'Debian 9.5 x86_64'
587+
);
588+
589+
INSERT INTO products ( /* 99 */
590+
name
591+
) VALUES (
592+
'Debian 9.6 x86_64'
593+
);
594+
577595
/* Directories */
578596

579597
INSERT INTO directories ( /* 1 */
@@ -1144,6 +1162,12 @@ INSERT INTO groups_product_defaults (
11441162
4, 94
11451163
);
11461164

1165+
INSERT INTO groups_product_defaults (
1166+
group_id, product_id
1167+
) VALUES (
1168+
4, 97
1169+
);
1170+
11471171
INSERT INTO groups_product_defaults (
11481172
group_id, product_id
11491173
) VALUES (
@@ -1264,6 +1288,18 @@ INSERT INTO groups_product_defaults (
12641288
5, 95
12651289
);
12661290

1291+
INSERT INTO groups_product_defaults (
1292+
group_id, product_id
1293+
) VALUES (
1294+
5, 98
1295+
);
1296+
1297+
INSERT INTO groups_product_defaults (
1298+
group_id, product_id
1299+
) VALUES (
1300+
5, 99
1301+
);
1302+
12671303
INSERT INTO groups_product_defaults (
12681304
group_id, product_id
12691305
) VALUES (

testing/config/kvm/alice.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<domain type='kvm'>
22
<name>alice</name>
33
<uuid>1f35c25d-6a7b-4ee1-2461-d7e530e7b2a9</uuid>
4-
<memory unit='KiB'>131072</memory>
5-
<currentMemory unit='KiB'>131072</currentMemory>
4+
<memory unit='KiB'>163840</memory>
5+
<currentMemory unit='KiB'>163840</currentMemory>
66
<vcpu placement='static'>1</vcpu>
77
<os>
88
<type arch='x86_64' machine='pc'>hvm</type>

testing/do-tests

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,15 @@ subdir_cnt="0"
5151
##############################################################################
5252
# parse optional arguments
5353
#
54-
while getopts "v" opt
54+
while getopts "vt" opt
5555
do
5656
case "$opt" in
5757
v)
5858
verbose=YES
59+
timestamps=YES
60+
;;
61+
t)
62+
timestamps=YES
5963
;;
6064
esac
6165
done
@@ -64,7 +68,7 @@ shift $((OPTIND-1))
6468

6569
function print_time()
6670
{
67-
[ "$verbose" == "YES" ] && echo "$(date +%T.%N) ~ "
71+
[ "$timestamps" == "YES" ] && echo "$(date +%T.%N) ~ "
6872
}
6973

7074
##############################################################################
@@ -689,21 +693,25 @@ do
689693
do
690694
eval HOSTLOGIN=root@\$ipv4_${host}
691695

692-
for file in clients.conf eap.conf radiusd.conf proxy.conf users
696+
RADIUS_DIR=/etc/freeradius/3.0
697+
RADIUS_EAP_FILE=mods-enabled/eap
698+
RADIUS_EAP_NAME=eap
699+
if [ "$BASEIMGSUITE" == "jessie" ]
700+
then
701+
RADIUS_DIR=/etc/freeradius
702+
RADIUS_EAP_FILE=eap.conf
703+
RADIUS_EAP_NAME=eap.conf
704+
fi
705+
706+
for file in clients.conf radiusd.conf proxy.conf users sites-enabled/default sites-enabled/inner-tunnel $RADIUS_EAP_FILE
693707
do
694-
scp $SSHCONF $HOSTLOGIN:/etc/freeradius/$file \
695-
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
708+
scp $SSHCONF $HOSTLOGIN:$RADIUS_DIR/$file \
709+
$TESTRESULTDIR/${host}.$(basename $file) > /dev/null 2>&1
696710
done
697711

698-
scp $SSHCONF $HOSTLOGIN:/etc/strongswan.conf \
699-
$TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
700-
701712
scp $SSHCONF $HOSTLOGIN:/var/log/freeradius/radius.log \
702713
$TESTRESULTDIR/${host}.radius.log > /dev/null 2>&1
703714

704-
ssh $SSHCONF $HOSTLOGIN grep imcv /var/log/daemon.log \
705-
>> $TESTRESULTDIR/${host}.daemon.log 2>/dev/null
706-
707715
chmod a+r $TESTRESULTDIR/*
708716
cat >> $TESTRESULTDIR/index.html <<@EOF
709717
<h3>$host</h3>
@@ -713,14 +721,14 @@ do
713721
<ul>
714722
<li><a href="$host.clients.conf">clients.conf</a></li>
715723
<li><a href="$host.radiusd.conf">radiusd.conf</a></li>
716-
<li><a href="$host.strongswan.conf">strongswan.conf</a></li>
724+
<li><a href="$host.$RADIUS_EAP_NAME">$RADIUS_EAP_NAME</a></li>
717725
</ul>
718726
</td>
719727
<td valign="top">
720728
<ul>
721-
<li><a href="$host.eap.conf">eap.conf</a></li>
729+
<li><a href="$host.default">sites-enabled/default</a></li>
730+
<li><a href="$host.inner-tunnel">sites-enabled/inner-tunnel</a></li>
722731
<li><a href="$host.radius.log">radius.log</a></li>
723-
<li><a href="$host.daemon.log">daemon.log</a></li>
724732
</ul>
725733
</td>
726734
<td valign="top">
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
client moon {
2+
ipaddr = 10.1.0.1
3+
secret = gv6URkSs
4+
require_message_authenticator = yes
5+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# radiusd.conf -- FreeRADIUS server configuration file.
2+
3+
prefix = /usr
4+
exec_prefix = /usr
5+
sysconfdir = /etc
6+
localstatedir = /var
7+
sbindir = ${exec_prefix}/sbin
8+
logdir = /var/log/freeradius
9+
raddbdir = /etc/freeradius/3.0
10+
radacctdir = ${logdir}/radacct
11+
12+
# name of the running server. See also the "-n" command-line option.
13+
name = freeradius
14+
15+
# Location of config and logfiles.
16+
confdir = ${raddbdir}
17+
modconfdir = ${confdir}/mods-config
18+
certdir = ${sysconfdir}/raddb/certs
19+
cadir = ${sysconfdir}/raddb/certs
20+
run_dir = ${localstatedir}/run/${name}
21+
22+
# Should likely be ${localstatedir}/lib/radiusd
23+
db_dir = ${raddbdir}
24+
25+
# libdir: Where to find the rlm_* modules.
26+
libdir = ${exec_prefix}/lib
27+
28+
# pidfile: Where to place the PID of the RADIUS server.
29+
pidfile = ${run_dir}/${name}.pid
30+
31+
# correct_escapes: use correct backslash escaping
32+
correct_escapes = true
33+
34+
# max_request_time: The maximum time (in seconds) to handle a request.
35+
max_request_time = 30
36+
37+
# cleanup_delay: The time to wait (in seconds) before cleaning up
38+
cleanup_delay = 5
39+
40+
# max_requests: The maximum number of requests which the server keeps
41+
max_requests = 1024
42+
43+
# hostname_lookups: Log the names of clients or just their IP addresses
44+
hostname_lookups = no
45+
46+
# Logging section
47+
log {
48+
destination = files
49+
colourise = yes
50+
file = ${logdir}/radius.log
51+
syslog_facility = daemon
52+
stripped_names = no
53+
auth = yes
54+
auth_badpass = yes
55+
auth_goodpass = yes
56+
}
57+
58+
# The program to execute to do concurrency checks.
59+
checkrad = ${sbindir}/checkrad
60+
61+
# SECURITY CONFIGURATION
62+
security {
63+
user = freerad
64+
group = freerad
65+
allow_core_dumps = no
66+
max_attributes = 200
67+
reject_delay = 1
68+
status_server = yes
69+
}
70+
71+
# PROXY CONFIGURATION
72+
proxy_requests = yes
73+
$INCLUDE proxy.conf
74+
75+
# CLIENTS CONFIGURATION
76+
$INCLUDE clients.conf
77+
78+
# THREAD POOL CONFIGURATION
79+
thread pool {
80+
start_servers = 5
81+
max_servers = 32
82+
min_spare_servers = 3
83+
max_spare_servers = 10
84+
max_requests_per_server = 0
85+
auto_limit_acct = no
86+
}
87+
88+
# MODULE CONFIGURATION
89+
modules {
90+
$INCLUDE ${confdir}/mods-enabled/
91+
}
92+
93+
# Policies
94+
policy {
95+
$INCLUDE policy.d/
96+
}
97+
98+
# Include all enabled virtual hosts
99+
$INCLUDE sites-enabled/

testing/hosts/alice/etc/freeradius/dictionary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# The filename given here should be an absolute path.
1313
#
14-
$INCLUDE /usr/local/share/freeradius/dictionary
14+
$INCLUDE /usr/share/freeradius/dictionary
1515

1616
#
1717
# Place additional attributes or $INCLUDEs here. They will

testing/hosts/alice/etc/freeradius/radiusd.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ thread pool {
101101
modules {
102102
$INCLUDE ${confdir}/modules/
103103
$INCLUDE eap.conf
104-
$INCLUDE sql.conf
105-
$INCLUDE sql/mysql/counter.conf
106104
}
107105

108106
# Instantiation

testing/hosts/default/etc/ssh/sshd_config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Port 22
22
Protocol 2
33
Ciphers aes128-gcm@openssh.com
44
HostKey /etc/ssh/ssh_host_rsa_key
5-
HostKey /etc/ssh/ssh_host_dsa_key
65
HostKey /etc/ssh/ssh_host_ecdsa_key
76
UsePrivilegeSeparation no
87
PermitRootLogin yes
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#! /bin/sh
22

33
cat /usr/local/share/strongswan/templates/database/sw-collector/sw_collector_tables.sql | sqlite3 /etc/db.d/collector.db
4+
sed -i "s:DEBIAN_VERSION:`cat /etc/debian_version`:" /etc/pts/collector.sql
5+
cat /etc/pts/collector.sql | sqlite3 /etc/db.d/collector.db
46
LEAK_DETECTIVE_DISABLE=1 /usr/local/sbin/sw-collector
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# explicitly set an interface to avoid having to configure and run DHCPv6
2+
INTERFACESv4="eth0"
3+
INTERFACESv6=""

0 commit comments

Comments
 (0)