Discussion:
[Thinkfinger-devel] thinkfinger driver working on Dell D420 too
pancake
2007-01-24 21:01:22 UTC
Permalink
Just to say that i've downloaded the latest version of thinkfinger for
testing it on my Dell Latitute D420 and it works.

Greets to all the people that have written this driver.

I'll modify some apps to make them work with fingers and similar human
extensions ;)

About the source. I had to modify one file to build the lib on Gentoo
GNU/Linux.

This is the patch:

------------------------------
diff -ru thinkfinger-0.2/pam/pam_thinkfinger.c
thinkfinger-0.2.pancake/pam/pam_thinkfinger.c
--- thinkfinger-0.2/pam/pam_thinkfinger.c 2007-01-12
11:35:49.000000000 +0000
+++ thinkfinger-0.2.pancake/pam/pam_thinkfinger.c 2007-01-24
20:51:08.000000000 +0000
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <pthread.h>
#include <libthinkfinger.h>
-#include <security/pam_ext.h>
+//#include <security/pam_ext.h>
#include <security/pam_modules.h>

#define PAM_SM_AUTH
-------------------------------

That is. pam_ext.h is not checked by configure and is not used by the
pam_thinkfinger program. So it could be removed.

--pancake
Timo Hoenig
2007-01-24 22:24:24 UTC
Permalink
Pancake,
Post by pancake
Just to say that i've downloaded the latest version of thinkfinger for
testing it on my Dell Latitute D420 and it works.
Thanks for the report. I've already been waiting for that.

While crawling through the web I found out that both Dell and Toshiba
are using the same device, too. So probably we have to rename the
project at some point. Just kidding, but it really looks like
ThinkFinger will be useful for a lot more than just ThinkPads.
Post by pancake
Greets to all the people that have written this driver.
I'll modify some apps to make them work with fingers and similar human
extensions ;)
Please keep me posted about that. It seems that there are quite some
efforts required to get all display managers (GDM works fine while KDM
does not), screen savers and
run-something-in-the-context-of-someone-else-tools to the point where we
finally can say: "Don't bother if you lose your password, but please
keep your finger safe."
Post by pancake
About the source. I had to modify one file to build the lib on Gentoo
GNU/Linux.
<snip patch/>
Post by pancake
That is. pam_ext.h is not checked by configure and is not used by the
pam_thinkfinger program. So it could be removed.
Thanks, I have removed the #include and committed the update to SVN.

Timo
Michael
2007-01-24 22:40:10 UTC
Permalink
On Wed, Jan 24, 2007 at 23:24:24, Timo Hoenig said...
Post by Timo Hoenig
While crawling through the web I found out that both Dell and Toshiba
are using the same device, too. So probably we have to rename the
project at some point. Just kidding, but it really looks like
ThinkFinger will be useful for a lot more than just ThinkPads.
And my Sony Vaio SZ series!

I'll have to test again though, when I did before, nothing seemed to work, as
if the device wasn't quite the same. Perhaps I'll have a moment tonight.
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
"You never know how important you are to the fate of the universe."
Timo Hoenig
2007-01-24 22:46:54 UTC
Permalink
Hi Michael,
Post by Michael
And my Sony Vaio SZ series!
Great news!
Post by Michael
I'll have to test again though, when I did before, nothing seemed to work, as
if the device wasn't quite the same. Perhaps I'll have a moment tonight.
What's the USB ID of the device in your laptop?

Thanks,

Timo
Michael
2007-01-25 02:19:31 UTC
Permalink
On Wed, Jan 24, 2007 at 23:46:54, Timo Hoenig said...
Post by Timo Hoenig
What's the USB ID of the device in your laptop?
My Sony SZ series laptop (Core2duo, Gentoo 2006.1 x86_64) says:

Bus 004 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint
Reader

But when I try to build, I get:

pam_thinkfinger.c:29:30: error: security/pam_ext.h: No such file or directory
pam_thinkfinger.c: In function ‘pam_prompt_thread’:
pam_thinkfinger.c:117: warning: implicit declaration of function ‘pam_prompt’
pam_thinkfinger.c:117: warning: nested extern declaration of ‘pam_prompt’
make[2]: *** [pam_thinkfinger_so-pam_thinkfinger.o] Error 1

That's okay for now.


But I also get, when running tf-tool --verbose --acquire:

Initializing... done.
tf-tool: TF_STATE_COMM_FAILED (255)

Which is what I have been getting for every version I've tried.

It's a start :)
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
"Ignorance killed the cat, sir. Curiosity was framed." ---C.J. Cherryh
Michael
2007-01-25 02:21:43 UTC
Permalink
On Wed, Jan 24, 2007 at 21:19:31, Michael said...
Post by Michael
pam_thinkfinger.c:29:30: error: security/pam_ext.h: No such file or directory
pam_thinkfinger.c:117: warning: implicit declaration of function ‘pam_prompt’
pam_thinkfinger.c:117: warning: nested extern declaration of ‘pam_prompt’
make[2]: *** [pam_thinkfinger_so-pam_thinkfinger.o] Error 1
Oh yeah! Gentoo 2006.1 x86_64 seems to have PAM 0.78-r3. Or well, mine does
:)
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
.tcA thgirypoC muinnelliM latigiD eht detaloiv tsuj evah uoY
Stephan Berberig
2007-01-25 06:37:37 UTC
Permalink
Hi Michael,

I don't want to discourage you but I don't think that your fingerprint
reader is supported by either thinkfinger or the proprietary UPEK driver.

Some time ago, I had a long discussion with a guy on #linuxbiometrics
IRC channel.
We tried to get it working with his Sony fingerprint reader. But we
didn't succeed.

After that, the guy wrote an email to UPEK to ask if it's supported.
The told him that it's not and won't be supported because the
fingerprint reader in Sony laptops misses the hardware processor as in
the ThinkPads.

Best regards,
Stephan
Post by Michael
On Wed, Jan 24, 2007 at 21:19:31, Michael said...
Post by Michael
pam_thinkfinger.c:29:30: error: security/pam_ext.h: No such file or directory
pam_thinkfinger.c:117: warning: implicit declaration of function ‘pam_prompt’
pam_thinkfinger.c:117: warning: nested extern declaration of ‘pam_prompt’
make[2]: *** [pam_thinkfinger_so-pam_thinkfinger.o] Error 1
Oh yeah! Gentoo 2006.1 x86_64 seems to have PAM 0.78-r3. Or well, mine does
:)
Timo Hoenig
2007-01-25 10:17:34 UTC
Permalink
Hi Stephan,
Post by Stephan Berberig
After that, the guy wrote an email to UPEK to ask if it's supported.
The told him that it's not and won't be supported because the
fingerprint reader in Sony laptops misses the hardware processor as in
the ThinkPads.
Oh, those are bad news. Do you have any further details? Especially
whether it is possible to check whether the hardware processor is
present or not?

Thanks,

Timo
Michael
2007-01-25 12:32:51 UTC
Permalink
On Thu, Jan 25, 2007 at 07:37:37, Stephan Berberig said...
Post by Stephan Berberig
I don't want to discourage you but I don't think that your fingerprint
reader is supported by either thinkfinger or the proprietary UPEK driver.
Hmm, I thought I had heard that they worked in 32-bit Linux with the
proprietary driver... Probably I heard wrong. Oh well!
Post by Stephan Berberig
After that, the guy wrote an email to UPEK to ask if it's supported.
The told him that it's not and won't be supported because the
fingerprint reader in Sony laptops misses the hardware processor as in
the ThinkPads.
Seems weird of Sony to cripple it like that, when most other things on their
laptops work fine in Linux. Interesting how it shows up as a proper USB
device, you'd think that's all it would take.

No big deal, I didn't buy the laptop for the fingerprint reader alone.
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
Never be afraid to try something new. Amateurs built the ark -
Professionals built the Titanic.
Timo Hoenig
2007-01-25 12:41:06 UTC
Permalink
Post by Michael
Hmm, I thought I had heard that they worked in 32-bit Linux with the
proprietary driver... Probably I heard wrong. Oh well!
Can you please try the following:

- fresh boot
- run 'tf-init' as root
- run 'tf-tool --acquire --no-init'

This helps on some ThinkPads.

Thanks,

Timo
Timo Hoenig
2007-01-25 13:03:24 UTC
Permalink
Post by Timo Hoenig
- fresh boot
- run 'tf-init' as root
- run 'tf-tool --acquire --no-init'
If you're working on the latest SVN revision, please use:

- fresh boot
- run 'tf-init' as root
- run 'tf-tool --acquire

As '--no-init' is now being used as default.

Thanks,

Timo
Michael
2007-01-25 15:30:00 UTC
Permalink
On Thu, Jan 25, 2007 at 13:41:06, Timo Hoenig said...
Post by Timo Hoenig
- fresh boot
- run 'tf-init' as root
- run 'tf-tool --acquire --no-init'
This helps on some ThinkPads.
That's what I tried, though after I had logged in, and built the software.
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
"To dwell on the destination is to waste the journey"
Luca Capello
2007-01-24 23:16:41 UTC
Permalink
Hello!
Post by Timo Hoenig
Post by pancake
Just to say that i've downloaded the latest version of thinkfinger
for testing it on my Dell Latitute D420 and it works.
Thanks for the report. I've already been waiting for that.
While crawling through the web I found out that both Dell and
Toshiba are using the same device, too. So probably we have to
rename the project at some point. Just kidding, but it really looks
like ThinkFinger will be useful for a lot more than just ThinkPads.
My advice is to change the name ASAP, because later on it'll be a
nightmare as the program is getting attention by the public.
Post by Timo Hoenig
Post by pancake
Greets to all the people that have written this driver.
I'll modify some apps to make them work with fingers and similar
human extensions ;)
Please keep me posted about that. It seems that there are quite
some efforts required to get all display managers (GDM works fine
while KDM does not), screen savers and
run-something-in-the-context-of-someone-else-tools to the point
where we finally can say: "Don't bother if you lose your password,
but please keep your finger safe."
IMHO (and FWIW), the primary goal should be to have the module
compiled (and working) with old PAM versions, because it seems that
not all GNU/Linux distributions have already upgraded to 0.99.1.0.
Post by Timo Hoenig
Post by pancake
About the source. I had to modify one file to build the lib on
Gentoo GNU/Linux.
<snip patch/>
Post by pancake
That is. pam_ext.h is not checked by configure and is not used by
the pam_thinkfinger program. So it could be removed.
Thanks, I have removed the #include and committed the update to SVN.
Well, I don't understand how the PAM module can be funcional without
pam_ext.h, which contains the pam_prompt() declaration. In fact, if I
compile pam_thinkfinger.c without '#include <security/pam_ext.h>' and
then install it, at login there's no waiting for the fingerprint after
having typed the password and in /var/log/auth.log I have

PAM unable to dlopen(/lib/security/pam_thinkfinger.so)
PAM [dlerror: /lib/security/pam_thinkfinger.so: undefined symbol: pam_prompt]
PAM adding faulty module: /lib/security/pam_thinkfinger.so

Pancake, have you applied Stephan Berberig's patch [1]?

Thx, bye,
Gismo / Luca

Footnotes:
[1] http://sourceforge.net/mailarchive/forum.php?thread_id=31503359&forum_id=50980
Timo Hoenig
2007-01-24 23:28:19 UTC
Permalink
Hi Luca,
Post by Luca Capello
My advice is to change the name ASAP, because later on it'll be a
nightmare as the program is getting attention by the public.
Hm, actually I like ThinkFinger a lot. If it supports more than just
ThinkPads it does not really hurt. People will get known to the project
as a driver fort fingerprint readers. The association is definitely
focused on 'finger'. The prefix 'think' could be anything. However, if
someone comes up with a astonishing proposal I might change my opinion.
Post by Luca Capello
IMHO (and FWIW), the primary goal should be to have the module
compiled (and working) with old PAM versions, because it seems that
not all GNU/Linux distributions have already upgraded to 0.99.1.0.
Yes, agreed, but the preparation of other user space applications can be
done in parallel to our development of ThinkFinger.
Post by Luca Capello
Well, I don't understand how the PAM module can be funcional without
pam_ext.h, which contains the pam_prompt() declaration. In fact, if I
compile pam_thinkfinger.c without '#include <security/pam_ext.h>' and
then install it, at login there's no waiting for the fingerprint after
having typed the password and in /var/log/auth.log I have
PAM unable to dlopen(/lib/security/pam_thinkfinger.so)
PAM [dlerror: /lib/security/pam_thinkfinger.so: undefined symbol: pam_prompt]
PAM adding faulty module: /lib/security/pam_thinkfinger.so
Uh, I was to quick with the commit then. I will look into this
tomorrow. As always, thanks for your open eyes, Luca.

Timo
Timo Hoenig
2007-01-24 23:35:37 UTC
Permalink
Post by Timo Hoenig
Uh, I was to quick with the commit then. I will look into this
tomorrow. As always, thanks for your open eyes, Luca.
Fortunately, the corresponding 'svn commit' was not yet blessed with a
carriage return ;-)

Timo
Luca Capello
2007-01-24 23:38:59 UTC
Permalink
Hi Timo!
Post by Timo Hoenig
Post by Luca Capello
My advice is to change the name ASAP, because later on it'll be a
nightmare as the program is getting attention by the public.
Hm, actually I like ThinkFinger a lot. If it supports more than
just ThinkPads it does not really hurt. People will get known to
the project as a driver fort fingerprint readers. The association
is definitely focused on 'finger'. The prefix 'think' could be
anything.
I wasn't discouraging you from keeping ThinkFinger, on the contrary my
advice is to keep the actual name, because I like it a lot, too :-)
Post by Timo Hoenig
Post by Luca Capello
IMHO (and FWIW), the primary goal should be to have the module
compiled (and working) with old PAM versions, because it seems that
not all GNU/Linux distributions have already upgraded to 0.99.1.0.
Yes, agreed, but the preparation of other user space applications
can be done in parallel to our development of ThinkFinger.
Full ACK.
Post by Timo Hoenig
Post by Luca Capello
Well, I don't understand how the PAM module can be funcional
without pam_ext.h, which contains the pam_prompt() declaration.
[...]
Post by Timo Hoenig
Uh, I was to quick with the commit then. I will look into this
tomorrow. As always, thanks for your open eyes, Luca.
You're welcome.

Thx, bye,
Gismo / Luca
pancake
2007-01-25 01:40:10 UTC
Permalink
Post by Luca Capello
Post by Timo Hoenig
Post by pancake
Greets to all the people that have written this driver.
I'll modify some apps to make them work with fingers and similar
human extensions ;)
Please keep me posted about that. It seems that there are quite
some efforts required to get all display managers (GDM works fine
while KDM does not), screen savers and
run-something-in-the-context-of-someone-else-tools to the point
where we finally can say: "Don't bother if you lose your password,
but please keep your finger safe."
IMHO (and FWIW), the primary goal should be to have the module
compiled (and working) with old PAM versions, because it seems that
not all GNU/Linux distributions have already upgraded to 0.99.1.0.
Ooops:

pancake@~$ epm -q pam
pam-0.78-r3

Maybe this is the reason why I've no pam_ext. I've only build the module
(not yet tested) maybe checking if the include exists in autoconf and
later #if HAVE_INCLUDE_PAM_EXT_H the #include.

I'll test the pam module too.
Post by Luca Capello
Post by Timo Hoenig
Post by pancake
About the source. I had to modify one file to build the lib on
Gentoo GNU/Linux.
<snip patch/>
Post by pancake
That is. pam_ext.h is not checked by configure and is not used by
the pam_thinkfinger program. So it could be removed.
Thanks, I have removed the #include and committed the update to SVN.
Well, I don't understand how the PAM module can be funcional without
pam_ext.h, which contains the pam_prompt() declaration. In fact, if I
compile pam_thinkfinger.c without '#include <security/pam_ext.h>' and
then install it, at login there's no waiting for the fingerprint after
having typed the password and in /var/log/auth.log I have
PAM unable to dlopen(/lib/security/pam_thinkfinger.so)
PAM [dlerror: /lib/security/pam_thinkfinger.so: undefined symbol: pam_prompt]
PAM adding faulty module: /lib/security/pam_thinkfinger.so
Pancake, have you applied Stephan Berberig's patch [1]?
Nope, but i'll. i've onlyt tested the 'tf-tool' utility, not the PAM module.
So I want to test if it works at first instance.
Post by Luca Capello
[1] http://sourceforge.net/mailarchive/forum.php?thread_id=31503359&forum_id=50980
--pancake
pancake
2007-01-25 00:19:47 UTC
Permalink
Hi timo
Post by Timo Hoenig
Thanks for the report. I've already been waiting for that.
I forgot to submit the usb id of it:

Bus 002 Device 005: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Post by Timo Hoenig
While crawling through the web I found out that both Dell and Toshiba
are using the same device, too. So probably we have to rename the
project at some point. Just kidding, but it really looks like
ThinkFinger will be useful for a lot more than just ThinkPads.
Hehhe, yup.
Post by Timo Hoenig
Post by pancake
Greets to all the people that have written this driver.
I'll modify some apps to make them work with fingers and similar human
extensions ;)
Please keep me posted about that. It seems that there are quite some
efforts required to get all display managers (GDM works fine while KDM
does not), screen savers and
run-something-in-the-context-of-someone-else-tools to the point where we
finally can say: "Don't bother if you lose your password, but please
keep your finger safe."
Hahha, nice sentence :)

I was thinking on modifying slock (suckless.org) as an initial test, so I
would like to read some sources before anything.

I've been working with libdpfp few months ago on embedded boards with ARM
and ARCA processors, both with ucLinux. Maybe both projects can join efforts
for a better fingerprinting support on free OSes.
Post by Timo Hoenig
Post by pancake
That is. pam_ext.h is not checked by configure and is not used by the
pam_thinkfinger program. So it could be removed.
Thanks, I have removed the #include and committed the update to SVN.
Great! I'll read the sources and play a bit with it.

Regards

--pancake
Timo Hoenig
2007-01-24 23:30:16 UTC
Permalink
Post by pancake
Bus 002 Device 005: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Looks good. ThinkFinger should work. If it doesn't we should
investigate.
Post by pancake
I've been working with libdpfp few months ago on embedded boards with ARM
and ARCA processors, both with ucLinux. Maybe both projects can join efforts
for a better fingerprinting support on free OSes.
I have not yet heared of libdpfp. Thanks for the pointer, I'll have a
look.

Timo
Loading...