Kdesudo does not work with libpam-poldi

Bug #144970 reported by Martin Gräßlin
4
Affects Status Importance Assigned to Milestone
kdesudo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kdesudo

I'm using an OpenPGP SmartCard with pam-poldi and this does not interact correctly with kdesudo in gutsy. If I start any application which used to use kdesu in feisty nothing happens at all - no GUI appearing. (It worked correctly with kdesu in feisty)

If I start from konsole for example kdesudo kate I'm asked for the Card PIN, but am not able to enter it. Again no GUI is appearing.

 kdesudo kate
X Error: BadDevice, invalid or uninitialized input device 171
  Major opcode: 149
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 171
  Major opcode: 149
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
PIN (CHV2):

I just added the try-pin option to the pam configuration file, so that pam does not ask for the pin. A kdesudo kate starts kate without any password GUI, but with root privileges.

Related branches

Revision history for this message
Martin Gräßlin (ubuntu-martin-graesslin) wrote :

I just took a look at kdesudo.cpp. Unfortunatelly I am not very familiar with C++, so I do not know if my suggestion is correct. In method receivedOut different Strings are compared. I think there it has also be checked for "PIN (CHV2)" with the same behaviour as for "passprompt".

I'll try my best to provide a patch - it would be my first time :-)

Revision history for this message
Martin Gräßlin (ubuntu-martin-graesslin) wrote :

Ok I was able to fix this one. I attached a diff of the kdesudo.cpp source file.

Please tell me if there is anything else to do.

Revision history for this message
Frode M. Døving (frode) wrote :
Changed in kdesudo:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdesudo - 2.0-0ubuntu1

---------------
kdesudo (2.0-0ubuntu1) hardy; urgency=low

  * New upstream release :
    - Closes LP: #157043, #162823, #144970, #148255,#172749, #173319
  * Fixed packaging to divert both binary and manpage.

 -- Anthony Mercatante <tonio@kubuntu> Tue, 04 Dec 2007 16:41:58 +0100

Changed in kdesudo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.