NSAPI_PUBLIC
int ldapu_cert_to_ldap_entry (void *cert, LDAP *ld,
const char *basedn, LDAPMessage **res);
LDAPU_SUCCESS
, if the function was successful.
ldapu_err2string()
to get more information on the problem.)Essentially, this function does the following:
certmap.conf
file. If the CA does not have an entry in the configuration file, the default entry is used.
verifycert on
entry, passes the results of the search function to the certificate verification function for that CA (see "CertVerifyFn_t (Verification Function)").
If successful, the function returns the result of the LDAP search in theres
argument. The first entry in theres
argument is the matching user's entry. You can get this entry by calling theldap_first_entry()
function, which is one of the functions in the LDAP API provided with the Netscape Directory SDK.
For more information on the ldap_first_entry()
function, see the Directory
SDK Programmer's Guide.