On 06/10/2011 02:11 PM, Massimiliano Pala wrote:
that's not really what I wanted.. I am developing my own ldap client
and I wanted to know what is the code path to set the option.
I tried to use the following:
ldap_set_option(ld, LDAP_OPT_X_TLS_REQUIRE_CERT, "never")
but it always fails ( != 0).
Sets/gets the peer certificate checking strategy,
int reqcert = LDAP_OPT_X_TLS_NEVER;
rc = ldap_set_option(ld, LDAP_OPT_X_TLS_REQUIRE_CERT, &reqcert);
Also, I would like to know if there's a possibility to set a callback
for the verify of the certificates.
No that I know of. The problem here is - what
would be passed to this
callback? A certificate? In which format?
On 06/10/2011 03:05 PM, Rich Megginson wrote:
> TLS_REQCERT <level>
> never, allow, try