English 中文(简体)
通过智能卡验证窗口登录
原标题:Verify windows log-in via smart card

Hi I need to verify in my WPF application if the user log in to his computer via password or via smart-card. Both login options are available in my company clients but my application need to open only in the smart-card login. All the clients are windows 7 OS.

I look at some sites: http://technet.microsoft.com/en-us/library/ff404285(v=ws.10).aspx http://www.codeproject.com/Articles/240655/Using-a-Smart-Card-Certificate-with-NET-Security-i

and I m thinking I need to get the enhanced key usage (EKU) attribute field. If the EKU is empty => then the user was loged via password and not via smartcard.

我只需要这个简单的检查, 我并不想在证明书上创建/验证。

最佳回答

Windows 不记录登录时使用的证书, 这样您无法检查 EKU, Windows 也不记录使用的证书类型, 这样就不会有简单的解决方案。 我有一些建议 :

选项1: 使用 < a href=" http://technet.microsoft.com/ en- us/library/dd378897%28v=ws0. 10% 29" rel="nfollow" > Ablientication Mecurity Consurance 在用户使用智能卡登录时,在用户的访问标记上增加一个额外的组成员, 并设置您的应用程序来要求该组成员。 这需要在 Windows Server 2008 R2 功能级别上显示一个域 。

选项 2: < a href=" NP Logonnotify

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签