OleSetnes
asked on
Retriving the SID from a Relative Distinguished Name (RDN)
I have a RDN (like "DC=local, DC=smart, CN=Users, CN=User One") that is returned from a certificate
(CertGetNameString( pCertContext, CERT_NAME_RDN_TYPE, 0, &dwStrType, szNameString, 128))
I would like to have the SID for this RDN name. I guess there must be some kind of Active Directory (ADSI) function for this (preferably that doesn't require binding to a certain domain or server), but my knowledge to ADSI is limited?
(CertGetNameString( pCertContext, CERT_NAME_RDN_TYPE, 0, &dwStrType, szNameString, 128))
I would like to have the SID for this RDN name. I guess there must be some kind of Active Directory (ADSI) function for this (preferably that doesn't require binding to a certain domain or server), but my knowledge to ADSI is limited?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.