possibly need this option. What CA certificates come bundled with C<libldap>
and are checked by default depends on the distribution you use.
+=item B<Timeout> I<Seconds>
+
+Set the timeout value for ldap operations. Defaults to B<-1> which results in
+an infinite timeout.
+
=back
=head2 Plugin C<openvpn>
ldap_set_option (st->ld, LDAP_OPT_PROTOCOL_VERSION, &st->version);
+ ldap_set_option (st->ld, LDAP_OPT_TIMEOUT,
+ &(const struct timeval){st->timeout, 0});
+
if(st->cacert != NULL)
ldap_set_option (st->ld, LDAP_OPT_X_TLS_CACERTFILE, st->cacert);
return (status);
}
+ st->timeout = -1;
st->verifyhost = 1;
st->version = LDAP_VERSION3;