-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIN Code gets rejected when trying to logon to an Active Directory Domain #25
Comments
OpenSC.tokend has been totally broken (for PIV tokens at least) till very recently. It is much better now, but still somewhat short of the mark. The symptoms you describe remind me of the problem I used to have trying to unlock the token using Keychain Access. My recommendation: get the latest Github version of OpenSC (not the released version), and try mouse07410/OpenSC.tokend fork with it. This combination would give you the best chance. |
The card driver implements an internal caching mechanism for the current EF/DF. Your log shows that it thinks of a cache hit and does not issue a select command on your key:
Could you check if disabling the cache fixes the problem? Also note that OpenSC internally tries to re-validate the cached PIN to then re-issue the signature command. For some strange reason the signature operation changes now and results in an error:
I hope this gives you some directions, but debugging is really only possible with the card. Please also try |
@mouse07410 Thanks for the quick reply, about to try that. @frankmorgner Also thanks for the advise - unfortunately Turning of the cache did not solve the problem - however the logfiles are looking slightly different now. We are using PKCS15 to access the card as there is no PKCS11 plugin available on OSX for our card. So we did disable use_pin_caching in the PKCS15 Framework. Here are the logs (level 3) after turning of the cache: Inserting the card
Entering the valid PIN
|
Disabling the file cache I talked about requires modification of the sourcecode (see OpenSC ships with a PKCS#11 library on OS X. If your card works in tokend, it also works in |
I concur regarding testing with |
What kind of card/token is it? Is it provisioned fully? |
First a short but very necessary thank you for that wonderful piece of software made publicly available - it has helped a great deal so far.
In an attempt to logon to an Active Directory Domain using a PKCS15 SmartCard we got as close as being prompted with the proper domain user and asked to enter the PIN Code.
opensc-tokend.log, Level 3 - Find Level 5 attached below.
loglevel5.txt
From what we could figure is that each attempt of entering the PIN Code reaches the Smart Card.
So if we would enter a wrong code for more than 4 times the card gets locked, but even if we enter the correct PIN it would keep asking for it.
I would really appreciate advice on that matter.
Best Regards
Martin
The text was updated successfully, but these errors were encountered: