Discussion:
[rancid] Re: [Ticket#2009020210000574] FreeBSD Port: rancid-2.3.1_3 / modification to nlogoin patch to fix hang at password prompt / nlogi [...] (fwd)
Mohacsi Janos
2009-02-03 16:43:27 UTC
Permalink
Dear All,

As a maintainer of FreeBSD port of rancid I received the following
report. I believe this should be addressed in the main distibution level.

Best Regards,

Janos Mohacsi
Network Engineer, Research Associate, Head of Network Planning and Projects
NIIF/HUNGARNET, HUNGARY
Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882

---------- Forwarded message ----------
Date: Mon, 2 Feb 2009 14:09:08 -0500
From: Network Infrastructure Support <***@otrs.ewc.edu>
To: ***@bsd.hu
Cc: ***@FreeBSD.org
Subject: Re: [Ticket#2009020210000574] FreeBSD Port: rancid-2.3.1_3 /
modification to nlogoin patch to fix hang at password prompt / nlogi [...]



Created:
02/02/2009 13:37:50
--- nlogin.dist 2009-01-30 12:46:12.000000000 -0500
+++ nlogin 2009-02-02 13:33:41.000000000 -0500
@@ -353,21 +353,12 @@
set uprompt_seen 1
exp_continue
}
- "@\[^\r\n]+\[Pp]assword:" {
+ "password:" {
# ssh pwd prompt
sleep 1
send "$userpswd\r"
exp_continue
}
- "\[Pp]assword:" {
- sleep 1;
- if {$uprompt_seen == 1} {
- send "$userpswd\r"
- } else {
- send "$passwd\r"
- }
- exp_continue
- }
"$prompt" { break; }
}
}
@@ -485,14 +476,14 @@
if {[login $firewall $ruser $userpswd $passwd $enapasswd $prompt $cmethod
$cyphertype]} {
continue
}
- if { $enable } {
- if {[do_enable $enauser $enapasswd]} {
- if { $do_command || $do_script } {
- close; wait
- continue
- }
- }
- }
+# if { $enable } {
+# if {[do_enable $enauser $enapasswd]} {
+# if { $do_command || $do_script } {
+# close; wait
+# continue
+# }
+# }
+# }
# we are logged in, now figure out the full prompt
send "\r"
expect {
john heasley
2009-02-03 17:09:09 UTC
Permalink
It appears to me that both of these problems are fixed in 2.3.2a9. Please
try that.
Post by Mohacsi Janos
Dear All,
As a maintainer of FreeBSD port of rancid I received the following
report. I believe this should be addressed in the main distibution level.
Best Regards,
Janos Mohacsi
Network Engineer, Research Associate, Head of Network Planning and Projects
NIIF/HUNGARNET, HUNGARY
Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882
---------- Forwarded message ----------
Date: Mon, 2 Feb 2009 14:09:08 -0500
Subject: Re: [Ticket#2009020210000574] FreeBSD Port: rancid-2.3.1_3 /
modification to nlogoin patch to fix hang at password prompt / nlogi [...]
02/02/2009 13:37:50
--- nlogin.dist 2009-01-30 12:46:12.000000000 -0500
+++ nlogin 2009-02-02 13:33:41.000000000 -0500
@@ -353,21 +353,12 @@
set uprompt_seen 1
exp_continue
}
+ "password:" {
# ssh pwd prompt
sleep 1
send "$userpswd\r"
exp_continue
}
- "\[Pp]assword:" {
- sleep 1;
- if {$uprompt_seen == 1} {
- send "$userpswd\r"
- } else {
- send "$passwd\r"
- }
- exp_continue
- }
"$prompt" { break; }
}
}
@@ -485,14 +476,14 @@
if {[login $firewall $ruser $userpswd $passwd $enapasswd $prompt $cmethod
$cyphertype]} {
continue
}
- if { $enable } {
- if {[do_enable $enauser $enapasswd]} {
- if { $do_command || $do_script } {
- close; wait
- continue
- }
- }
- }
+# if { $enable } {
+# if {[do_enable $enauser $enapasswd]} {
+# if { $do_command || $do_script } {
+# close; wait
+# continue
+# }
+# }
+# }
# we are logged in, now figure out the full prompt
send "\r"
expect {
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...