-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) ldap: Allow to support ldaps on the microsoft ldap sdk
+ PR 54626. [Jean-Frederic Clere]
*) worker MPM: Don't forcibly kill worker threads if the child process is
exiting gracefully. [Oracle Corporation]
const char *file,
const char *password)
{
+#if APR_HAS_MICROSOFT_LDAPSDK
+ return "certificates cannot be set using this method.";
+#else
util_ldap_state_t *st =
(util_ldap_state_t *)ap_get_module_config(cmd->server->module_config,
&ldap_module);
}
return(NULL);
+#endif
}
static const char *util_ldap_set_trusted_mode(cmd_parms *cmd, void *dummy,
const char *mode)
{
+#if APR_HAS_MICROSOFT_LDAPSDK
+ return "certificates cannot be set using this method.";
+#else
util_ldap_state_t *st =
(util_ldap_state_t *)ap_get_module_config(cmd->server->module_config,
&ldap_module);
st->verify_svr_cert = mode;
return(NULL);
+#endif
}
NULL,
0,
&(result_err));
+#if APR_HAS_MICROSOFT_LDAPSDK
+ /* MICROSOFT_LDAPSDK uses Microsoft Management Console (MMC) for that */
+#else
if (APR_SUCCESS == rc) {
rc = apr_ldap_set_option(ptemp, NULL, APR_LDAP_OPT_TLS_CERT,
(void *)st->global_certs, &(result_err));
}
+#endif
if (APR_SUCCESS == rc) {
st->ssl_supported = 1;