简体   繁体   English

Active Directory智能卡授权

[英]Active Directory smartcard authorization

Im looking how to perform smart card authentication against AD from C# client application. 我正在寻找如何从C#客户端应用程序针对AD执行智能卡身份验证。 I need to make logon into application using the smart card. 我需要使用智能卡登录到应用程序。 Could somebody give me clue where to find API for this? 有人可以告诉我在哪里找到API的线索吗? Thanks. 谢谢。

you can call logonuser with serialized credential: 您可以使用序列化凭证来调用logonuser:

  • the hash of the certificate will become the username 证书的哈希将成为用户名
  • the PIN of the smart card will become the password 智能卡的PIN将成为密码

But to get the certificate, you will have to enumerate the cryptoapi containter then access the certificate using CryptGetKeyParam(KP_CERTIFICATE) 但是要获取证书,您将必须枚举cryptoapi容器,然后使用CryptGetKeyParam(KP_CERTIFICATE)访问证书

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM