I finally got the password part working. Made the following changes to sshutils.c
194c194 < seen = expect(fd, 120.0, --- > seen = expect(fd, 5.0, 196c196 < "please try again.", /* 2 */ --- > "Password:", /* 2 */ 207c207 < sleep(5); --- > /* sleep(5); */ 216c216 < break; --- > die(_("Unknown Failure Restarting\n")); The block in more readable form seen = expect(fd, 5.0, SENTINEL, /* 1 */ "Password:", /* 2 */ "Permission denied", /* 3 */ "password has expired", /* 4 */ NULL); if (seen == 1) { fprintf(ldmlog, "Saw sentinel. Logged in successfully\n"); return 0; } else if (seen == 2) { set_message(_("<b>Password incorrect.</b>")); if (!ldminfo.autologin) bzero(ldminfo.password, sizeof ldminfo.password); /* sleep(5); */ die(_("User failed password. Restarting\n")); } else if (seen == 3) { fprintf(ldmlog, "User %s failed password 3 times\n", ldminfo.username); set_message(_("<b>Login failed!</b>")); sleep(5); die(_("User failed login. Restarting\n")); } else die(_("Unknown Failure Restarting\n")); } I do not think you can ever get to 3 as it restarts after every failure. Why is it 120 seconds?? ssh when it fails responds with "Password:" not "please try again." Put a die in the else part. Why all the dies? It seems strange too have to reload ldm because of a password failure. Backports seems just too broken. I'm going to try switching my efforts to lenny on the terminals. It acts like the same sshutils.c problems are in lenny. I need to set up a lenny development environment as I need to stick to etch on my servers for quite a while. John John McMonagle wrote: > Have 2 problems with ldm. > > If I give bad uid or password it hangs forever with "Verifying password > please wait." message. > Have to restart terminal. > > When logging out seems to take an unreasonable time ~25 seconds. > > Both ltsp client and server are installs are from etch backports. > > I have tried it a few times on a different servers. > I tried a lenny client install a couple months ago and it was the same. > > Any ideas? > Is there some place else I should be reporting this? > I don't think you can file a bug report against backports. > > Local devices and sound work, > it's the one think keeping from switching. > > John > > -- John McMonagle IT Manager Advocap Inc. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net