You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Adrian Owen <ad...@eesm.com> on 2020/06/17 22:30:19 UTC

Help with TELNET password-regex

Hi,

TELNET logon to Cisco router not accepting username/password
----------------------------------------

User Access Verification

Username:
Password:
------------------------------------------

Anyone have example of password-regex?

Thanks, Adrian




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


RE: Help with TELNET password-regex

Posted by Adrian Owen <ad...@eesm.com>.
Set username-regex to '[Uu]sername:'

And now its ok.    Many thanks,

From: Mike Jumper [mailto:mjumper@apache.org] 
Sent: 18 June 2020 00:22
To: user@guacamole.apache.org
Subject: Re: Help with TELNET password-regex

On Wed, Jun 17, 2020 at 3:30 PM Adrian Owen <ad...@eesm.com> wrote:
Hi,

TELNET logon to Cisco router not accepting username/password
----------------------------------------

User Access Verification

Username:
Password:
------------------------------------------

Anyone have example of password-regex?

The default regular expressions for username and password can be found here:

https://github.com/apache/guacamole-server/blob/787ae317fc2da932cd826c9df68932355258dd60/src/protocols/telnet/settings.h#L58-L68

The password regex should already match the password prompt you have there. If your router doesn't support the standard telnet mechanisms for sending the username (forcing Guacamole to rely on a regex for that, as well), that may be why you're seeing things fail. The default username prompt regex used by Guacamole looks for "Login:" or "login:", not "Username:".

- Mike


Re: Help with TELNET password-regex

Posted by Mike Jumper <mj...@apache.org>.
On Wed, Jun 17, 2020 at 3:30 PM Adrian Owen <ad...@eesm.com> wrote:

> Hi,
>
> TELNET logon to Cisco router not accepting username/password
> ----------------------------------------
>
> User Access Verification
>
> Username:
> Password:
> ------------------------------------------
>
> Anyone have example of password-regex?
>

The default regular expressions for username and password can be found here:

https://github.com/apache/guacamole-server/blob/787ae317fc2da932cd826c9df68932355258dd60/src/protocols/telnet/settings.h#L58-L68

The password regex should already match the password prompt you have there.
If your router doesn't support the standard telnet mechanisms for sending
the username (forcing Guacamole to rely on a regex for that, as well), that
may be why you're seeing things fail. The default username prompt regex
used by Guacamole looks for "Login:" or "login:", not "Username:".

- Mike