Bug 2736 - OpenSC on SLED11 is broken
Summary: OpenSC on SLED11 is broken
Status: CLOSED INVALID
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Smart card (show other bugs)
Version: 2.0.0
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.7.0
Assignee: Pierre Ossman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 10:56 CET by Peter Åstrand
Modified: 2016-11-02 11:01 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Comment 1 Peter Åstrand cendio 2009-04-30 14:36:22 CEST
Problem still present in SLED11. It uses:

libopensc2-0.11.6-5.24
opensc-0.11.6-5.24
pcsc-lite-1.4.102-1.24
Comment 2 Peter Åstrand cendio 2011-07-06 12:53:55 CEST
Still a problem with SLED11SP1:

$ pkcs15-tool -c
** (process:19581): DEBUG: PC/SC tunnel library loaded.
** (process:19581): DEBUG: ScardEstablishContext(0)
** (process:19581): DEBUG: Connecting to 127.0.0.1:4916...
** (process:19581): DEBUG: Connected.
** (process:19581): DEBUG: Authenticating...
** (process:19581): DEBUG: Authenticated (server version 2).
** (process:19581): DEBUG: SCardListReaders(0x805b580)
** (process:19581): DEBUG: SCardListReaders(0x805b580)
** (process:19581): DEBUG: SCardGetStatusChange(0x805b580, 0, 1)
** (process:19581): DEBUG: SCardGetStatusChange(0x805b580, 0, 1)
** (process:19581): DEBUG: SCardGetStatusChange(0x805b580, 0, 1)
Card not present.
** (process:19581): DEBUG: SCardReleaseContext(0x805b580)
** (process:19581): DEBUG: Disconnecting.
** (process:19581): DEBUG: PC/SC tunnel library unloaded.
Comment 3 Peter Åstrand cendio 2012-03-26 13:55:31 CEST
With SLED11SP2 it actually works if you configure opensc.conf with:

	reader_drivers = pcsc;
...
		provider_library = /opt/thinlinc/lib64/libpcsclite.so
Comment 4 Karl Mikaelsson cendio 2013-04-11 16:23:22 CEST
Solving bug 3115 does not make this bug go away.

It turns out that the default value of the pcsc provider_library setting is /usr/lib64/libpcsclite.so (on a 64-bit system). On a Fedora system, this is set to libpcsclite.so. This means that we can't use LD_LIBRARY_PATH to "inject" our own smart card tunnel libraries. To get smart card tunneling working on SLED11SP2, the administrator needs to configure opensc.conf as described in comment #3.

libopensc2-0.11.6-5.27.1
opensc-0.11.6-5.27.1
pcsc-lite-1.4.102-1.37.3
Comment 5 Peter Åstrand cendio 2014-03-31 14:29:45 CEST
(In reply to comment #3)
> With SLED11SP2 it actually works if you configure opensc.conf with:
> 
>     reader_drivers = pcsc;
> ...
>         provider_library = /opt/thinlinc/lib64/libpcsclite.so

On SLED11SP3, you still need to set reader_drivers. Instead of providing the full patch to the provider library however it is sufficient with the short name. Thus recommending:

        reader_drivers = pcsc;
        provider_library = libpcsclite.so
Comment 6 Peter Åstrand cendio 2016-09-27 09:34:52 CEST
This is not a ThinLinc bug and SLED11 is pretty old and not a recommended dist.

Note You need to log in before you can comment on or make changes to this bug.