Howto use eToken with a udev distribution
- date: 20.06.2006
- changed: 05.06.2007
author: CorneliusKoelbel
<cornelius.koelbel AT lsexperts DOT de>
- used eToken hardware: --
- used eToken RTE Version: 3.65
The etoken middleware can be made to run under other distributions that rely on udev 0.59 and up. Some changes have been made concerning the hotplug mechanism.
You can download the patch at the bottom of the page.
This was successfully implemented and tested on Fedora Core 5. Please note, that this is not officially supported by Aladdin. If you need any professional assitance, please drop us a note. -> LSE
Hotplugging script
The usual eToken installation uses the hotplug scripts. Therefor a script /etc/hotplug.d/usb/etoken.hotplug is installed that tells the etokend when an etoken is plugged in or plugged out. This will not work with FC5 anymore. So you need to change this script to fit your new udev-needs. Copy it to /usr/local/bin/etoken and adapt it accordingly.
Making udev see the eToken
You have to add the udev-rules for the eToken. You might for example generate a new file /etc/udev/rules.d/01-my-etoken.rules with this content:
ACTION=="add", BUS=="usb", SYSFS{product}=="eToken Pro [0-9][0-9][0-9][0-9]", SYSFS{manufacturer}=="AKS", SYMLINK="etokenPro", RUN="/usr/local/bin/etoken add /dev/etokenPro"Depending on the types of eToken you are using, you have to find the right combination of SYSFS{Product} or SYSFS{manufacturer}. Add a rule with the ACTION=="remove" to tell the etokend when the eToken has been removed.
Download Patch
You can download a patch, that can be easily installed to make the eTokens work with the current Aladdin Middleware on (all) current Linux distributions.
Download the patch here: http://www.lsexperts.de/download/etoken-fc5-0.5.tgz
This patch was successfully tested on FC5, FC6, SuSE 10 and ubuntu 7.04.
