1
votes

I use ldap_bind_s to bind to ldap server. example:

SEC_WINNT_AUTH_IDENTITY *pSecIdentity;

ldap_bind_s( pLdapConnection, // Session Handle NULL, // Domain DN (_TCHAR*)pSecIdentity, // Credential structure LDAP_AUTH_NEGOTIATE)

pSecIdentity is filled with username and password. But the problem is i want to do the same with PKI users where i dont have username and password instead a user token. So how to proceed with this scenario. Are there any Structure to provide usertoken instead of username/password to authenticate?

1

1 Answers