cat-users AT lists.geant.org
Subject: The mailing list for users of the eduroam Configuration Assistant Tool (CAT)
List archive
- From: Tomasz Wolniewicz <twoln AT umk.pl>
- To: "Bernd P. Ziller" <bernd.ziller AT dhbw-stuttgart.de>, "cat-users AT lists.geant.org" <cat-users AT lists.geant.org>
- Subject: Re: [[cat-users]] Linux installer/script
- Date: Mon, 14 Jan 2019 13:57:48 +0100
Hi,
Turns out you fell a victim of your long hash. The code that is
generating the actual python script tries to produce something that fits
the python line length recommendations and also preserves words.
Normally it works just fine but with a long string with no spaces inside
it fails and produces the stuff with extra spaces. Getting this right
may take a moment.
Tomasz
W dniu 14.01.2019 o 13:23, Bernd P. Ziller pisze:
> Hi,
>
> in the linux installer-script the anonymous identity gets some spaces in
> front of it.
>
> From our eduroam-linux.py:
>
> 967: Config.anonymous_identity = " \
> 968: ""long-hash-to-stop-manual-configs AT lehre.dhbw-stuttgart.de"
>
> which results in a NetworkManager configuration that contains:
>
> anonymous-identity=\s\s\s\s\slong-hash-to-stop-manual-configs AT lehre.dhbw-stuttgart.de
>
> Which of course does not work.
>
> anonymous_identity does fwrite the configuration after calling wordwrap in
> https://github.com/GEANT/CAT/blob/master/devices/linux/Device_Linux.php
> 101: fwrite($file, wordwrap($out, 70, " \" \\\n \"") . "\n");
>
> Regards,
> Bernd Ziller
--
Tomasz Wolniewicz
twoln AT umk.pl http://www.home.umk.pl/~twoln
Uczelniane Centrum Informatyczne Information&Communication Technology Centre
Uniwersytet Mikolaja Kopernika Nicolaus Copernicus University,
pl. Rapackiego 1, Torun pl. Rapackiego 1, Torun, Poland
tel: +48-56-611-2750 tel kom.: +48-693-032-576
Attachment:
smime.p7s
Description: Kryptograficzna sygnatura S/MIME
- [[cat-users]] Linux installer/script, Bernd P. Ziller, 01/14/2019
- Re: [[cat-users]] Linux installer/script, Tomasz Wolniewicz, 01/14/2019
- Re: [[cat-users]] Linux installer/script, Tomasz Wolniewicz, 01/14/2019
- Re: [[cat-users]] Linux installer/script, Tomasz Wolniewicz, 01/14/2019
Archive powered by MHonArc 2.6.19.