Problem with quoting (Version 2.2.0)
Hello! We have the following configuration (running FreeRadius version 2.2.0): eap { verify { tmpdir = /tmp/radiusd client = "/usr/sbin/radius-cert-verifier '${..CA_path}' %{TLS-Client-Cert-Filename}" } } Our problem is, that the script /usr/sbin/radius-cert-verifier gets (correctly) two parameters but the first parameter WITH the single quotes. We need the quotes here, because ${..CA_path} can contain spaces! If we remove the single quotes (and we tested double quotes too) and we have a path with spaces in it, the call fails, because now we get 3 parameters. What should we do? Is this a bug in FreeRadius itself? Regards Sven Anders -- Sven Anders <anders@anduras.de> () UTF-8 Ribbon Campaign /\ Support plain text e-mail ANDURAS intranet security AG Messestrasse 3 - 94036 Passau - Germany Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55 Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. - Benjamin Franklin
On 02/25/2013 03:46 PM, Sven Anders wrote:
If we remove the single quotes (and we tested double quotes too) and we have a path with spaces in it, the call fails, because now we get 3 parameters.
What should we do? Is this a bug in FreeRadius itself?
It's not a bug, in that it is "designed" to work that way, but it's certainly a deficiency that was discussed on the -devel list recently. The only thing you can do at the moment is not use a CA path with spaces in it - sorry!
participants (2)
-
Phil Mayers -
Sven Anders