I may be missing something here but aren't you waiting for
/new password:
and from what I can see from debug() you are getting
Enter l+ogin(NIS+ ) password
I don't think the condition
$telnet->waitfor('/new password: ?$/i') or report_error("ERROR", "No p
+assword prompt found, contact Information Technologies: ");
Is being met...waitfor() is just sitting there waiting for that prompt to match and it isn't so you never get to $telnet->print($new_password);
Of course, I haven't tried it on a real machine but this looks to me to be the possible cause of your quandry. |