<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<style>.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</style>


Hello, <br>I work on RHEL 5. I want to make my own pam module to read smart card. I desactivate RHEL's smart card manager.<br>I downloaded pam-pkcs11-0.6.1<br>I tried to authenticate with smart card to su -<br>1) when the card is inserted before running su -, there is no problem, but<br>2) when I run su - ( the program is waiting for my card ) then I inserted the card, the system did not detect my card. <br> <br>in pkcs11_lib.c line 1144 :<br> if (slot_num == 0) {<br>     <font style="" color="#4f81bd">printf("* find_slot_by_number : slot_num==0\n");</font> (*)// by me, to check if slog_num == 0 ( satisfied )<br>    for (slot_num = 0; slot_num < <font style="" color="#c00000">h->slot_count &&!h->slots[slot_num].token_present</font>; slot_num++);<br>   }<br><font style="" color="#c00000"><br><font style="" color="#000000">-- I get : slot_num == 0 by printing <font style="" color="#4f81bd">(*)</font></font><br><font style="" color="#000000">-- </font>h->slot_count &&!h->slots[slot_num].token_present <font style="" color="#000000">is never satisfied (always FALSE).</font></font> ( I tested by printing )<br>-- Could someone tell me if there is a problem with pcsc-lite or/and the program who waits for a smart card event ?<br><br>Thanks for your help, <br><br>Aro<br /><hr />Avec Windows Live, vous organisez, retouchez et <a href='http://www.microsoft.com/northafrica/windows/windowslive/products/photo-gallery-edit.aspx' target='_new'>partagez vos photos.</a></body>
</html>