Subject: | parse_connection_opts target regex too restrictive |
Date: | Tue, 16 Jun 2015 01:58:43 +0000 |
To: | bug-Net-OpenSSH [...] rt.cpan.org |
From: | Mark Rushing <seatek [...] gmail.com> |
Parsing the $target in the way the current regex does makes it impossible
for users using Samba domain logins to use the module (unless they disable
the use of domain names in the user string).
For example, if your machine is part of the Samba/Kerberos domain
SAMBA.MYDOMAIN.COM -- and your machine name is myhost.mydomain.com -- you
log in via SSH like this:
ssh username@SAMBA.MYDOMAIN.COM@myhost.mydomain.com
This Perl modules fail with the error bad host/target specification in this
instance, I imagine because it's pulling the "username@" as the username,
and making the rest be the host to connect to, which of course isn't right.
We need to split from the furthest right '@'.
BTW thank you so much for this module. It's been incredibly helpful and
wonderful to have, and I greatly, greatly appreciate it. :)