Help with TELNET password-regex

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with TELNET password-regex

Adrian Owen
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Help with TELNET password-regex

mjumper
Administrator
On Wed, Jun 17, 2020 at 3:30 PM Adrian Owen <[hidden email]> 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:


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

Reply | Threaded
Open this post in threaded view
|

RE: Help with TELNET password-regex

Adrian Owen
Set username-regex to '[Uu]sername:'

And now its ok.    Many thanks,

From: Mike Jumper [mailto:[hidden email]]
Sent: 18 June 2020 00:22
To: [hidden email]
Subject: Re: Help with TELNET password-regex

On Wed, Jun 17, 2020 at 3:30 PM Adrian Owen <[hidden email]> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]