<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" style="orphans: auto; widows: auto;" class=""><span style="orphans: 2; widows: 2;" class="">On Jan 25, 2015, at 8:08 AM, Henrik Brautaset Aronsen &lt;<a href="mailto:henrik@synth.no" class="">henrik@synth.no</a>&gt; wrote:</span><br class=""></blockquote><blockquote type="cite" class="">On 24 Jan 2015, at 23:54, Shawn Geddis &lt;<a href="mailto:geddis@icloud.com" class="">geddis@icloud.com</a>&gt; wrote:<br class=""><blockquote type="cite" class=""><br class="">Your email messages are all referencing the support of hardware (NFC readers and the hardware of the smartcard recognition of the electronics of the&nbsp;smart card), but not the Applet on the card. &nbsp;<br class=""></blockquote><br class="">This is just a rewritable NFC tag with about 800 bytes of rewriteable memory [1]. &nbsp;It's not interfaced with a smartcard, so I guess an applet is not&nbsp;available in my case. &nbsp;&nbsp;<br class=""><br class=""><blockquote type="cite" class="">Once your particular smart card type is supported by an installed Tokend, then ALL services access and use the card as a dynamic keychain - via&nbsp;keychain services. &nbsp;No application or service needs to know it is a smart card and simply uses the standard keychain / Sec… APIs available on OS X.&nbsp;&nbsp;So yes, once you have a supporting Tokend, you could use sc_auth to assign a card to an account for login, but realize that is not the normal method&nbsp;for Smart Card Login on OS X. &nbsp;You are much better off &nbsp;using the standard of PKINT which leverages both PKI and your Microsoft AD’s KDC. &nbsp;<br class=""></blockquote><br class="">I opted for the simple hash authentication mechanism, since it looked like the simplest way to achieve my goal. &nbsp;It would just require a field on my&nbsp;user's authentication_authority property containing the hash.<br class=""><br class=""><blockquote type="cite" class="">So, before any of us can help you further, we need to know and understand what Card Type (applet loaded on the card) you are using or want to use&nbsp;on your system.<br class=""></blockquote><br class="">I really appreciate all the help I'm receiving! &nbsp;But maybe logging into OSX with an NFC tag is not achievable?<br class=""><br class="">Henrik<br class=""><br class="">[1] <a href="http://www.nxp.com/documents/data_sheet/NTAG213_215_216.pdf" class="">http://www.nxp.com/documents/data_sheet/NTAG213_215_216.pdf</a><br class=""></blockquote><br class=""><div class=""><br class=""></div><div class="">Henrik,</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">This is just a rewritable NFC tag with about 800 bytes of rewriteable memory [1]. &nbsp;It's not interfaced with a smartcard, so I guess an applet is not&nbsp;available in my case. &nbsp;&nbsp;</blockquote></div><div class=""><br class=""></div><div class="">A TokenD can be written to communicate with just about any type of device or technology. &nbsp;Sorry if I implied otherwise. &nbsp;My reference to Applet was because the vast majority of Smart Cards/Readers in use, particularly on OS X, are those used for PKI and are applet based. &nbsp;Any developer, however, can create a TokenD that communicates with any technology — an NFC tag, an HSM, a key FOB, etc…&nbsp;</div><div class=""><br class=""></div><div class="">Looking at content from your original email message:</div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><span style="font-family: Palatino-Roman; font-size: 12px;" class="">17/01/15 21:04:28,005 com.apple.SecurityServer[71]: reader ACS ACR122U: state changed 16 -&gt; 34</span><br style="font-family: Palatino-Roman; font-size: 12px;" class=""><span style="font-family: Palatino-Roman; font-size: 12px;" class="">17/01/15 21:04:30,066 com.apple.SecurityServer[71]: token in reader ACS ACR122U cannot be used (error 229)</span><br style="font-family: Palatino-Roman; font-size: 12px;" class=""><span style="font-family: Palatino-Roman; font-size: 12px;" class="">17/01/15 21:04:33,567 com.apple.SecurityServer[71]: reader ACS ACR122U: state changed 32 -&gt; 18</span><br style="font-family: Palatino-Roman; font-size: 12px;" class=""></div></blockquote><div class=""><br class=""></div><div class="">The second line shows that no currently installed TokenD responded to the SmartCardServices layer that it could recognize and communicate with the current token recognized after the event “token Insertion” (card insertion) took place. &nbsp;If you develop a TokenD to respond with success after probing the Token, you would then have a TokenD which would remain loaded until the “token removal” (card removal) event was recognized. &nbsp;</div><div class=""><br class=""></div><div class="">If you are going to be doing the development yourself or you are helping someone else do the development, you might want to look at the source code in the repository for say &nbsp;"PIV” (for PIV.tokend) inside the tokend Xcode Project and start with the probe function to understand how the "score” determines which TokenD “wins” and remains loaded/communicating with the ‘token’. &nbsp;Please keep in mind the open source licensing requirements.</div><div class=""><br class=""></div><div class="">It is possible to do what you want *IF* you develop or have someone else develop the corresponding TokenD to support the devices (ie. NXP&nbsp;NTAG) you wish to use.</div><div class=""><br class=""></div><div class="">Hope this helps to explain the environment better and give you guidance as to how to proceed.</div><div class=""><br class=""></div><div class=""><div apple-content-edited="true" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica; orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: -webkit-auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">- Shawn</span></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">_______________________________________________________________________<br class="">Shawn Geddis<span class="Apple-tab-span" style="white-space: pre;">                                </span>&nbsp;&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                        </span>&nbsp;</span></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span style="font-family: Arial; orphans: auto; widows: auto; text-align: -webkit-auto;" class=""><b class="">Security and Certifications Engineer</b></span>, Apple&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<a href="mailto:geddis@apple.com" class="">geddis@apple.com</a>)<br class=""><b class="">SCAP-On-Apple</b></span><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">&nbsp;Project/Dev Lead:<span class="Apple-tab-span" style="white-space: pre;">                </span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;(</span><a href="http://scap-on-apple.macosforge.org/" class="">SCAP-On-Apple.MacOSForge.Org</a>)</div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><b class="">SmartCardServices</b></span><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">&nbsp;Project/Dev Lead:&nbsp;<span class="Apple-tab-span" style="white-space: pre;">                </span>&nbsp; &nbsp; &nbsp;(</span><a href="http://smartcardservices.macosforge.org/" class="">SmartCardServices.MacOSForge.Org</a>)</div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">_______________________________________________________________________</span></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><br class=""></span></div></div></div></div></div></div></div></div></div></div></div></body></html>