Kdesudo does not work with libpam-poldi
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.
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 :-)