使用 ldap_bind_s- 绑定到 Ldap 服务器 我们可以使用用户令牌而不是用户名和密码进行身份验证吗

Binding to Ldap Server using ldap_bind_s- Can we authenticate using usertoken rathen than username and password

我使用 ldap_bind_s 绑定到 ldap 服务器。 示例:

SEC_WINNT_AUTH_IDENTITY *pSecIdentity;

ldap_bind_s( pLdapConnection, // 会话句柄 NULL, // 域 DN (_TCHAR*)pSecIdentity, // 凭证结构 LDAP_AUTH_NEGOTIATE)

pSecIdentity 填写了用户名和密码。 但问题是我想对没有用户名和密码的 PKI 用户做同样的事情,而不是用户令牌。 那么如何处理这种情况。 是否有任何结构来提供 usertoken 而不是 username/password 来进行身份验证?

检查这是否有帮助 不太确定,但看起来很有希望 https://pkienthusiast.wordpress.com/2011/09/16/apache2-pki-certificate-authentication-and-ldap-authorisation-example-2/