cat-users AT lists.geant.org
Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)
List archive
- From: Brian Epstein <bepstein AT ias.edu>
- To: cat-users AT geant.net
- Subject: [cat-users] Linux installer woes with single quotes in password
- Date: Tue, 25 Nov 2014 16:06:59 -0500
- 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>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
All,
We were having an issue with one particular user and the CAT installer
for Linux. We suspect that they may have a single quote in their
password.
Our testing showed that passwords with single quotes would break the
installer. I wrote a quick patch that modifies the PASSWORD variable
just before it is used for the inline python script in the
run_python_script function.
It basically replaces any single quotes with an escaped single quote
which Python accepts.
PASSWORD=$( echo "$PASSWORD" | sed "s/'/\\\'/g" )
I've tested this and it seems to work fine.
I'm attaching the patch in case it helps you. Obviously, everyone's
installer will apply the patch on a different line due to certificate
size and customization, but you get the general idea of where it goes.
Any idea if this affects other OS/installers?
Thanks,
ep
- --
Brian Epstein
<bepstein AT ias.edu>
+1 609-734-8179
Manager, Network and Security Institute for Advanced Study
Key fingerprint = 128A 38F4 4CFA 5EDB 99CE 4734 6117 4C25 0371 C12A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlR072YACgkQYRdMJQNxwSpaJwCdHuqbWUdcG00uZO24JbJ1BfOB
v+AAnRDpeLUoig2Rl2Ev1KiEkr75emRa
=o1Z5
-----END PGP SIGNATURE-----
--- eduroam-linux-IfAS.sh 2014-11-25 15:58:02.952800474 -0500 +++ eduroam-linux-IfAS.sh.ep 2014-11-25 15:58:32.347616579 -0500 @@ -250,6 +250,7 @@ -----END CERTIFICATE----- " > $HOME/.eduroam/ca.pem function run_python_script { +PASSWORD=$( echo "$PASSWORD" | sed "s/'/\\\'/g" ) python << EOF > /dev/null 2>&1 #-*- coding: utf-8 -*- import dbus
- [cat-users] Linux installer woes with single quotes in password, Brian Epstein, 11/25/2014
- Re: [cat-users] Linux installer woes with single quotes in password, Tomasz Wolniewicz, 11/25/2014
- Re: [cat-users] Linux installer woes with single quotes in password, Brian Epstein, 11/25/2014
- Re: [cat-users] Linux installer woes with single quotes in password, Alan Buxey, 11/25/2014
- Re: [cat-users] Linux installer woes with single quotes in password, Tomasz Wolniewicz, 11/25/2014
Archive powered by MHonArc 2.6.19.