Debian Bug report logs - #462764
login through ldm using ssh-key authentication takes more than 2 min

version graph

Package: ldm; Maintainer for ldm is Debian LTSP Maintainers <team+ltsp@tracker.debian.org>; Source for ldm is src:ldm (PTS, buildd, popcon).

Reported by: SZABO Zsolt <szazs@mm.bme.hu>

Date: Sun, 27 Jan 2008 12:06:01 UTC

Severity: normal

Found in version 0.1~bzr20071217

Fixed in version ldm/2:0.1~bzr20080219-1

Done: Vagrant Cascadian <vagrant@freegeek.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#462764; Package ldm. (full text, mbox, link).


Acknowledgement sent to SZABO Zsolt <szazs@mm.bme.hu>:
New Bug report received and forwarded. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: SZABO Zsolt <szazs@mm.bme.hu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: login through ldm using ssh-key authentication takes more than 2 min
Date: Sun, 27 Jan 2008 12:59:14 +0100
Package: ldm
Version: 0.1~bzr20071217
Severity: normal
Tags: patch

ssh-key authentication does not send password: prompt which is expected by
ssh_chat() function
this patch fixes the problem:

--- ldm-0.1~bzr20071217/src/sshutils.c	2007-12-18 01:36:18.000000000 +0100
+++ ldm-0.1~bzr20071217.new/src/sshutils.c	2008-01-24 15:25:43.000000000 +0100
@@ -167,6 +167,7 @@
         fprintf(ldmlog, "ssh_chat: looking for ssword: from ssh\n");
         seen = expect(fd, 30.0, "ssword:",
                                 "continue connecting",
+				SENTINEL,	/* for ssh-key auth: no passwd */
                                 NULL);
         if (seen == 1) {
             fprintf(ldmlog, "ssh_chat: got it!  Sending pw\n");
@@ -178,6 +179,9 @@
                 set_message(_("This workstation isn't authorized to connect to server"));
             sleep(5);
             die("Terminal not authorized, run ltsp-update-sshkeys\n");
+        } else if (seen == 3) {
+            fprintf(ldmlog, "Saw sentinel. Logged in successfully\n");
+            return 0;
         } else  {
             die("Unexpected text from ssh session.  Exiting\n");
         }


-- System Information:
Debian Release: 4.0
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)




Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#462764; Package ldm. (full text, mbox, link).


Acknowledgement sent to vagrant@freegeek.org:
Extra info received and forwarded to list. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 462764@bugs.debian.org (full text, mbox, reply):

From: vagrant@freegeek.org
To: SZABO Zsolt <szazs@mm.bme.hu>, 462764@bugs.debian.org
Subject: Bug#462764: login through ldm using ssh-key authentication takes more than 2 min
Date: Sun, 27 Jan 2008 17:40:08 -0800
tags 462764 - patch
thanks

On Sun, Jan 27, 2008 at 12:59:14PM +0100, SZABO Zsolt wrote:
> ssh-key authentication does not send password: prompt which is expected by
> ssh_chat() function
> this patch fixes the problem:

the supplied patch caused ldm to fail to start without also using the
patch from debian bug #462760 to allow autologin. 

with the autologin patch, it worked when setting LDM_USER to the user
and LDM_PASSWORD to an invalid password (although it still *required*
setting LDM_PASSWORD to something). so it definitely used the ssh key.

it needs more work, but it's a good start. :)

live well,
  vagrant




Tags removed: patch Request was from vagrant@freegeek.org to control@bugs.debian.org. (Mon, 28 Jan 2008 01:42:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#462764; Package ldm. (full text, mbox, link).


Acknowledgement sent to vagrant@freegeek.org:
Extra info received and forwarded to list. Copy sent to LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #17 received at 462764@bugs.debian.org (full text, mbox, reply):

From: vagrant@freegeek.org
To: SZABO Zsolt <szazs@mm.bme.hu>, 462764@bugs.debian.org
Subject: Bug#462764: login through ldm using ssh-key authentication takes more than 2 min
Date: Wed, 30 Jan 2008 13:50:07 -0800
On Sun, Jan 27, 2008 at 12:59:14PM +0100, SZABO Zsolt wrote:
> ssh-key authentication does not send password: prompt which is expected by
> ssh_chat() function
> this patch fixes the problem:

in combination with the alternate patch for autologin, your patch works
great; applied upstream and will be uploaded to debian soon.

thanks!

live well,
  vagrant




Tags added: pending Request was from vagrant@freegeek.org to control@bugs.debian.org. (Mon, 04 Feb 2008 07:39:11 GMT) (full text, mbox, link).


Reply sent to Vagrant Cascadian <vagrant@freegeek.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to SZABO Zsolt <szazs@mm.bme.hu>:
Bug acknowledged by developer. (full text, mbox, link).


Message #24 received at 462764-close@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@freegeek.org>
To: 462764-close@bugs.debian.org
Subject: Bug#462764: fixed in ldm 2:0.1~bzr20080219-1
Date: Wed, 20 Feb 2008 09:02:08 +0000
Source: ldm
Source-Version: 2:0.1~bzr20080219-1

We believe that the bug you reported is fixed in the latest version of
ldm, which is due to be installed in the Debian FTP archive:

ldm_0.1~bzr20080219-1.diff.gz
  to pool/main/l/ldm/ldm_0.1~bzr20080219-1.diff.gz
ldm_0.1~bzr20080219-1.dsc
  to pool/main/l/ldm/ldm_0.1~bzr20080219-1.dsc
ldm_0.1~bzr20080219-1_amd64.deb
  to pool/main/l/ldm/ldm_0.1~bzr20080219-1_amd64.deb
ldm_0.1~bzr20080219.orig.tar.gz
  to pool/main/l/ldm/ldm_0.1~bzr20080219.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 462764@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@freegeek.org> (supplier of updated ldm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 19 Feb 2008 22:18:05 -0800
Source: ldm
Binary: ldm
Architecture: source amd64
Version: 2:0.1~bzr20080219-1
Distribution: unstable
Urgency: low
Maintainer: LTSP Debian/Ubuntu Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>
Changed-By: Vagrant Cascadian <vagrant@freegeek.org>
Description: 
 ldm        - LTSP display manager
Closes: 462760 462764
Changes: 
 ldm (2:0.1~bzr20080219-1) unstable; urgency=low
 .
   * new upstream release from bzr:
     - install ldmgtkgreeter and ldm-scripts in /usr/lib
     - fixed autologin using slightly modified patch by Francis Giraldeau
       (Closes: #462760)
     - patch from SZABO Zsolt to fix login using ssh keys
       (Closes: #462764)
     - LDM_THEME variable to override default ldm theme
     - LDM_ALLOW_GUEST variable to display a "Guest Login" button that behaves
       similarly to autologin when pressed.
     - thanks to Ryan Niebur for help with autologin, ldm theme and guest login
       code
     - only ask password once. (thanks to Oliver Gravert for the patch)
     - do not display month or date on login screen. (idea from Gideon Romm)
     - when displaying status message, make entry fields not editable.
       (patch from Gideon Romm)
 .
   * debian/control:
     - conflict with older versions of ltsp-client-core, as it also shipped an
       ldm screen.d script
Files: 
 59178e1ebc65e52819e394a1325115f5 876 misc extra ldm_0.1~bzr20080219-1.dsc
 c2a968e2f48cf7fee34108df5df81922 443527 misc extra ldm_0.1~bzr20080219.orig.tar.gz
 39da11bd143c73212427f66921974f80 63910 misc extra ldm_0.1~bzr20080219-1.diff.gz
 ce7a54f92e7681531e26356d5745d3a0 139292 misc extra ldm_0.1~bzr20080219-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHu9l9mqVR2WapDeIRAs0sAKCcV1XhA56J1dMCfZtRWUjw6dPErwCgwCFU
rDpvOmwUnWCt1FiK0XLbfMw=
=AZ0m
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 20 Mar 2008 07:33:18 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 13:24:08 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.