Hi Eddy,

sorry for the delayed response

StartCom Ltd. wrote:
Hi Nils,

When using pam_pkcs11 it fails to login because of "open_pkcs11_login() failed: C_Login() failed: 102"

Looking up the code for 102 points me to CKR_USER_PIN_NOT_INITIALIZED

Am I right with this so far? Now the question is why?

Function pkcs11_login in pkcs11_lib.c makes this call:

rv = h->fl->C_Login(h->session, CKU_USER, (unsigned char*)password, strlen(password));
  if (rv != CKR_OK) {

And fails currently with code 102....Nils, could you confirm, that this is the right code and the user pin is not initialized at this point? Than we just have to find out why....BTW, I could nowhere find the C_Login function...from where is it? Opensc module?

it should be src/pkcs11/pkcs11-session.c but I think the problem
is in pkcs15_login (framework-pkcs15.c same dir).

could you send me the "pkcs15-tool --dump" output ?

Cheers,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to