cat-users AT lists.geant.org
Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)
List archive
- From: Oliver Griffiths <grio1_12 AT uni.worc.ac.uk>
- To: "cat-users AT geant.net" <cat-users AT geant.net>
- Subject: [cat-users] Linux CAT bug for University of Worcester?
- Date: Fri, 3 Oct 2014 17:02:42 +0000
- Accept-language: en-US
- List-archive: <http://mail.geant.net/pipermail/cat-users/>
- List-id: "The mailing list for users of the eduroam Configuration Assistant Tool \(CAT\)" <cat-users.geant.net>
Hi
I am running #!which is a based on Debian wheezy, and uses openbox. It's the latest version (as of 24/9/14).
I downloaded the CAT bash script for my institution, University of Worcester (eduroam-linux-uow.sh). As far as I know I am the first linux user to encounter this issue at the institution, but I may also be the first student at Worcester to try accessing eduroam from a linux distro. Net admins did mention they had trouble getting someone's Chromebook to connect.
I am running the script by:
$ sudo bash ./eduroam-linux-uow.sh
A dialogue box opens giving tech support details, I hit OK, which brings up another one asking if I am a member of the university. When I hit yes the term prints "This option is not available. Please see --help for all possible usages."
When I:
$ sudo bash -x ./eduroam-linux-uow.sh
the script looks like it is meant to open a dialogue asking the user to agree to UoW/eduroam's terms of use after this second dialogue closes, however this never opens.
I have included the full code from the downloaded script below.
I have accessed the network using a net admin's credentials from openbox so I am confident I will find a way to work around this without using CAT. I'm not sure if this is a problem with the script or just my own fault, a problem with my versions of bash/zenity/network
manager etc, just thought your team might want to know/look into it.
Best regards,
Oli Griffiths
University of Worcester.
grio1_12 AT uni.worc.ac.uk
Content of eduroam-linux-uow.sh as downloaded from cat.eduroam.org today (03/10/14).
-----------------END OF SCRIPT --------------#!/bin/bash
my_name=$0
function setup_environment {
bf=""
n=""
ORGANISATION="University of Worcester"
URL=""http://www.worc.ac.uk/ils/wireless-service.htm"
SUPPORT="helpdesk AT worc.ac.uk"
if [ ! -z "$DISPLAY" ] ; then
if which zenity 1>/dev/null 2>&1 ; then
ZENITY=`which zenity`
elif which kdialog 1>/dev/null 2>&1 ; then
KDIALOG=`which kdialog`
else
if tty > /dev/null 2>&1 ; then
if echo $TERM | grep -E -q "xterm|gnome-terminal|lxterminal" ; then
bf="[1m";
n="[0m";
fi
else
find_xterm
if [ -n "$XT" ] ; then
$XT -e $my_name
fi
fi
fi
fi
}
function split_line {
echo $1 | awk -F '\\\\n' 'END { for(i=1; i <= NF; i++) print $i }'
}
function find_xterm {
terms="xterm aterm wterm lxterminal rxvt gnome-terminal konsole"
for t in $terms
do
if which $t > /dev/null 2>&1 ; then
XT=$t
break
fi
done
}
function ask {
T="eduroam CAT"
# if ! [ -z "$3" ] ; then
# T="$T: $3"
# fi
if [ ! -z $KDIALOG ] ; then
if $KDIALOG --yesno "${1}\n${2}?" --title "$T" ; then
return 0
else
return 1
fi
fi
if [ ! -z $ZENITY ] ; then
if $ZENITY --question --text="${1}\n${2}?" --title="$T" ; then
return 0
else
return 1
fi
fi
yes=Y
no=N
yes1=`echo $yes | awk '{ print toupper($0) }'`
no1=`echo $no | awk '{ print toupper($0) }'`
if [ $3 == "0" ]; then
def=$yes
else
def=$no
fi
echo "";
while true
do
split_line "$1"
read -p "${bf}$2 ${yes}/${no}? [${def}]:$n " answer
if [ -z "$answer" ] ; then
answer=${def}
fi
answer=`echo $answer | awk '{ print toupper($0) }'`
case "$answer" in
${yes1})
return 0
;;
${no1})
return 1
;;
esac
done
}
function alert {
if [ ! -z $KDIALOG ] ; then
$KDIALOG --sorry "${1}"
return
fi
if [ ! -z $ZENITY ] ; then
$ZENITY --warning --text="$1"
return
fi
echo "$1"
}
function show_info {
if [ ! -z $KDIALOG ] ; then
$KDIALOG --msgbox "${1}"
return
fi
if [ ! -z $ZENITY ] ; then
$ZENITY --info --width=500 --text="$1"
return
fi
echo "$1"
}
function confirm_exit {
if [ ! -z $KDIALOG ] ; then
if $KDIALOG --yesno \"Really quit?\" ; then
exit 1
fi
fi
if [ ! -z $ZENITY ] ; then
if $ZENITY --question --text=\"Really quit?\" ; then
exit 1
fi
fi
}
function prompt_nonempty_string {
prompt=$2
if [ ! -z $ZENITY ] ; then
if [ $1 -eq 0 ] ; then
H="--hide-text "
fi
if ! [ -z "$3" ] ; then
D="--entry-text=$3"
fi
elif [ ! -z $KDIALOG ] ; then
if [ $1 -eq 0 ] ; then
H="--password"
else
H="--inputbox"
fi
fi
out_s="";
if [ ! -z $ZENITY ] ; then
while [ ! "$out_s" ] ; do
out_s=`$ZENITY --entry --width=300 $H $D --text "$prompt"`
if [ $? -ne 0 ] ; then
confirm_exit
fi
done
elif [ ! -z $KDIALOG ] ; then
while [ ! "$out_s" ] ; do
out_s=`$KDIALOG $H "$prompt" "$3"`
if [ $? -ne 0 ] ; then
confirm_exit
fi
done
else
while [ ! "$out_s" ] ; do
read -p "${prompt}: " out_s
done
fi
echo $out_s;
}
function user_cred {
PASSWORD="a"
PASSWORD1="b"
if ! USER_NAME=`prompt_nonempty_string 1 "enter your userid"` ; then
exit 1
fi
while [ "$PASSWORD" != "$PASSWORD1" ]
do
if ! PASSWORD=`prompt_nonempty_string 0 "enter your password"` ; then
exit 1
fi
if ! PASSWORD1=`prompt_nonempty_string 0 "repeat your password"` ; then
exit 1
fi
if [ "$PASSWORD" != "$PASSWORD1" ] ; then
alert "passwords do not match"
fi
done
}
setup_environment
show_info "This installer has been prepared for ${ORGANISATION}\n\nMore information and comments:\n\nEMAIL: ${SUPPORT}\nWWW: ${URL}\n\nInstaller created with software from the GEANT project."
if ! ask "This installer will only work properly if you are a member of ${bf}University of Worcester.${n}" "Continue" 1 ; then exit; fi
if ! ask "University of Worcester’s Eduroam Terms of Use\n\nRegulations for the Use of IT facilities by Staff and Students\n\nAccess to the Eduroam Network is governed by the University of Worcester’s regulation on use of IT facilities and Acceptable Use Policy specified nationally for all JANET users. You are using this service by virtue of your membership of University of Worcester as student, staff or authorised guest of the University.\n\nThe University regulations published here apply to anyone using any kind of computer hardware or software, for any purpose at the University, even if it is their own equipment and even if it is only connected to the institution through a network from an outside location. They also apply to anyone here using the computer facilities of another university or college.\n\nFor certain IT facilities in The University you will need to register as a user, in particular, the network, and this is done directly with the IT Service. Any user identification or password you are given is for you alone: do not tell anyone yours and do not try to use anyone else's.\n\nYou agree to follow appropriate instructions for using computers and use only authorised software. You agree to use software which is legally licensed and keep to the licence conditions.\n\nYou must not damage, interfere with or change any hardware or software; if you do, you will be charged for having it put right. You agree not to introduce, or risk introducing, viruses or anything similar. You agree not to interfere with other users or their data or software. Smoking, eating and drinking near computers may damage them, so please don't do it!\n\nYou must not create, display, produce or circulate any offensive material. In particular, you must not use University facilities for defamatory remarks. The computer systems, which manage the network automatically, log transactions and keep a record of details.\n\nIf you break these rules you may be liable for disciplinary action and in certain instances may be breaking the criminal of or civil law, which could lead to prosecution.\nData regarding use of the Internet including email communication may be held for the prevention and detection of crime and for the protection of children and vulnerable individuals.\nThe following are forbidden:\n• Use another person's network account.\n• Wilful damage to the computer or network, including the deliberate introduction of viruses.\n• Behaving in a way that contravenes the University of Worcester ICT regulations\n• Inciting another person to do any of the above.\n\nYou agree not to use the Internet to breach any provision of existing intellectual property right legislation, including but not limited to copyright and any other laws for the time being in force. The University of Worcester accepts no liability for any of your acts or omissions or for any consequences if you break any law.\nPlease also consider:\n\n• The speed of transmission and availability of the Internet cannot be guaranteed.\n• Users acknowledge that the access and use of the Internet is at their own risk including sending personal or private information, including credit card or bank details, addresses, etc.\n• The University of Worcester accepts no liability for any loss of data when using the computing facilities.\n\nData Protection\n\nBy using the Eduroam network, we will need to process your personal data. The Data Controller of the personal data we process are Head of Personnel and the Registrar. Your personal data will be used to administer your session, our systems and to monitor compliance with our Acceptable Use Agreement. Beyond this, your personal data will not be shared with other people or organisations except where we are obligated or compelled to do so by law or where the terms of our Acceptable Use Agreement permit us to do so.\n${n}" "Continue" 1 ; then exit; fi
if [ -d $HOME/.eduroam ] ; then
if ! ask "Directory $HOME/.eduroam exists; some of its files may be overwritten." "Continue" 1 ; then exit; fi
else
mkdir $HOME/.eduroam
fi
# save certificates
echo "-----BEGIN CERTIFICATE-----
MIIENjCCAx6gAwIBAgIBATANB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5nSYEevj0NTmDa76AxTpXv8916WoIgQ7ahY0OzUGlDYktWYrA0irkT
Q1mT7BR5iPNIk+idyfqHcgxrVqDDFY1opYcfcS3mWm08aXFABFXcoEOUIEU4eNe9
itg5xt8Jt1qaqQO4KBB4zb8BG1oRPjj02Bs0ec8z0gH9rJjNbUcRkEy7uVvYcOfV
r7bMxIbmdcCeKbYrDyqlaQIN4+mitF3A884saoU4dmHGSYKrUbOCprlBmCiY+2v+
ihb/MX5UR6g83EMmqZsFt57ANEORMNQywxFa4Q==
-----END CERTIFICATE-----
" > $HOME/.eduroam/ca.pem
function run_python_script {
python << EOF > /dev/null 2>&1
#-*- coding: utf-8 -*-
import dbus
import re
import sys
import uuid
import os
class EduroamNMConfigTool:
def connect_to_NM(self):
#connect to DBus
try:
self.bus = dbus.SystemBus()
except dbus.exceptions.DBusException:
print "Can't connect to DBus"
sys.exit(2)
#main service name
self.system_service_name = "org.freedesktop.NetworkManager"
#check NM version
nm_version = self.check_nm_version()
if nm_version == "0.9":
self.settings_service_name = self.system_service_name
self.connection_interface_name = "org.freedesktop.NetworkManager.Settings.Connection"
#settings proxy
sysproxy = self.bus.get_object(self.settings_service_name, "/org/freedesktop/NetworkManager/Settings")
#settings intrface
self.settings = dbus.Interface(sysproxy, "org.freedesktop.NetworkManager.Settings")
elif nm_version == "0.8":
#self.settings_service_name = "org.freedesktop.NetworkManagerUserSettings"
self.settings_service_name = "org.freedesktop.NetworkManager"
self.connection_interface_name = "org.freedesktop.NetworkManagerSettings.Connection"
#settings proxy
sysproxy = self.bus.get_object(self.settings_service_name, "/org/freedesktop/NetworkManagerSettings")
#settings intrface
self.settings = dbus.Interface(sysproxy, "org.freedesktop.NetworkManagerSettings")
else:
print "This Network Manager version is not supported"
sys.exit(2)
def check_opts(self):
self.cacert_file = '${HOME}/.eduroam/ca.pem'
self.pfx_file = '${HOME}/.eduroam/user.p12'
if not os.path.isfile(self.cacert_file):
print "Certificate file not found, looks like a CAT error"
sys.exit(2)
def check_nm_version(self):
try:
proxy = self.bus.get_object(self.system_service_name, "/org/freedesktop/NetworkManager")
props = dbus.Interface(proxy, "org.freedesktop.DBus.Properties")
version = props.Get("org.freedesktop.NetworkManager", "Version")
except dbus.exceptions.DBusException:
version = "0.8"
if re.match(r'^0\.9', version):
return "0.9"
if re.match(r'^0\.8', version):
return "0.8"
else:
return "Unknown version"
def byte_to_string(self, barray):
return "".join([chr(x) for x in barray])
def delete_existing_connections(self, ssid):
"checks and deletes earlier connections"
try:
conns = self.settings.ListConnections()
except dbus.exceptions.DBusException:
print "DBus connection problem, a sudo might help"
exit(3)
for each in conns:
con_proxy = self.bus.get_object(self.system_service_name, each)
connection = dbus.Interface(con_proxy, "org.freedesktop.NetworkManager.Settings.Connection")
try:
connection_settings = connection.GetSettings()
if connection_settings['connection']['type'] == '802-11-wireless':
conn_ssid = self.byte_to_string(connection_settings['802-11-wireless']['ssid'])
if conn_ssid == ssid:
connection.Delete()
except dbus.exceptions.DBusException:
pass
def add_connection(self,ssid):
s_con = dbus.Dictionary({
'type': '802-11-wireless',
'uuid': str(uuid.uuid4()),
'permissions': ['user:$USER'],
'id': ssid
})
s_wifi = dbus.Dictionary({
'ssid': dbus.ByteArray(ssid),
'security': '802-11-wireless-security'
})
s_wsec = dbus.Dictionary({'key-mgmt': 'wpa-eap'})
s_8021x = dbus.Dictionary({
'eap': ['peap'],
'identity': '$USER_NAME',
'ca-cert': dbus.ByteArray("file://" + self.cacert_file + "\0"),
'subject-match': 'worc.ac.uk',
'password': '$PASSWORD',
'phase2-auth': 'mschapv2',
})
s_ip4 = dbus.Dictionary({'method': 'auto'})
s_ip6 = dbus.Dictionary({'method': 'auto'})
con = dbus.Dictionary({
'connection': s_con,
'802-11-wireless': s_wifi,
'802-11-wireless-security': s_wsec,
'802-1x': s_8021x,
'ipv4': s_ip4,
'ipv6': s_ip6
})
self.settings.AddConnection(con)
def main(self):
self.check_opts()
ver = self.connect_to_NM()
self.delete_existing_connections('eduroam')
self.add_connection('eduroam')
if __name__ == "__main__":
ENMCT = EduroamNMConfigTool()
ENMCT.main()
EOF
}
function create_wpa_conf {
cat << EOFW >> $HOME/.eduroam/eduroam.conf
network={
ssid="eduroam"
key_mgmt=WPA-EAP
eap=PEAP
ca_cert="${HOME}/.eduroam/ca.pem"
identity="${USER_NAME}"
subject_match="worc.ac.uk"
phase2="auth=MSCHAPV2"
password="${PASSWORD}"
}
EOFW
chmod 600 $HOME/.eduroam/eduroam.conf
}
#prompt user for credentials
user_cred
if run_python_script ; then
show_info "Installation successful"
else
show_info "Network Manager configuration failed, generating wpa_supplicant.conf"
if [ -f $HOME/.eduroam/eduroam.conf ] ; then
if ! ask "File $HOME/.eduroam/eduroam.conf exists; it will be overwritten." "Continue" 1 ; then confirm_exit; fi
rm $HOME/.eduroam/eduroam.conf
fi
create_wpa_conf
show_info "Output written to $HOME/.eduroam/eduroam.conf"
fi
- [cat-users] Linux CAT bug for University of Worcester?, Oliver Griffiths, 10/03/2014
- Re: [cat-users] Linux CAT bug for University of Worcester?, Tomasz Wolniewicz, 10/03/2014
Archive powered by MHonArc 2.6.19.