GDM login asks only password on login failure
Gavin McCullagh
gmccullagh at gmail.com
Tue Nov 6 10:07:50 GMT 2007
Hi,
On Tue, 06 Nov 2007, Gavin McCullagh wrote:
> Just to be clear, is this problem on an ordinary thin client? If so, the
> problem is with LDM not GDM so we need to track down a different issue.
Scott B is the author of ldm2, so he's the authority on this but I think I
can see your problem and can talk you through a temporary fix if necessary.
I'm not expecting you to necessarily understand what follows, but I'm
putting it out there so others who do might comment.
In ldm2/ldm.c line 265 we add two lines so it looks like:
cmd[i++] = "/usr/bin/ssh";
cmd[i++] = "-o"; // added temporarily
cmd[i++] = "NumberOfPasswordPrompts=1"; // added temporarily
cmd[i++] = "-X";
and in ldm2/sshutils.c line 49 we add two more lines:
sshcmd[i++] = "/usr/bin/ssh";
sshcmd[i++] = "-o"; // added temporarily
sshcmd[i++] = "NumberOfPasswordPrompts=1"; // added temporarily
sshcmd[i++] = "-X";
which should cause ssh client to only prompt once for a password. I'm not
currently in a position to test this, so if someone else can that would be
great.
Here are rough instructions for how to make the change, build and install
into LTSP.
mkdir src
cd src
apt-get source ldm
sudo apt-get build-dep ldm
cd ltsp-5.0.39/
# edit the two files adding two lines as above:
vim client/ldm2/src/ldm.c
vim client/ldm2/src/sshutils.c
# rebuild the ltsp packages
debuild -us -uc
# copy the new package to the ltsp chroot
sudo cp ldm_5.0.39_i386.deb /opt/ltsp/i386/root/
sudo chroot /opt/ltsp/i386 dpkg -i /root/ldm_5.0.39_i386.deb
sudo ltsp-update-images
One complication here is that if you've got an amd64 package the build
process will build ldm_5.0.39_amd64.deb not ldm_5.0.39_i386.deb. If this
is an issue, I'll have to figure out how to sort that out.
Gavin
More information about the edubuntu-users
mailing list