Smart Card authentication on Mac OS X Lion and OpenDirectory

In a mail on the SmartcardServices-Users mailing list I found a reference to an article (in French sorry) from April 2012 written by Yoann Gini about Smart Card authentication on Mac OS X Lion and OpenDirectory.

The french title is "Utiliser des cartes à puce pour s’authentifier sur OS X Lion avec un OpenDirectory".

Yoann writes about the configuration of a Feitian smart card + OpenSC to login on Mac OS X Lion.

Yoann also improved the command line tool sc_auth to add OpenDirectory support (the command binary is provided but I can't find the corresponding source code).

Note: sc_auth is not a compiled binary but a bash script. So the source code is the program itself. I should have checked that before.