]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Throw an error message if an attempt is made to use the LDAPTrustedCA
authorGraham Leggett <minfrin@apache.org>
Tue, 25 May 2004 16:18:22 +0000 (16:18 +0000)
committerGraham Leggett <minfrin@apache.org>
Tue, 25 May 2004 16:18:22 +0000 (16:18 +0000)
or LDAPTrustedCAType directives in a VirtualHost.
PR: 26390
Obtained from:
Submitted by:
Reviewed by: minfrin, bnicholes, jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103757 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/experimental/util_ldap.c

diff --git a/CHANGES b/CHANGES
index b7f3afaa451c822c3e6cf87a9f92cac8fec7f733..426050d38b58d36f1f96f99e11baabf506080199 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
 Changes with Apache 2.0.50
 
+  *) Throw an error message if an attempt is made to use the LDAPTrustedCA
+     or LDAPTrustedCAType directives in a VirtualHost. PR 26390
+     [Brad Nicholes]
+
   *) Fix a potential segfault if the bind password in the LDAP cache
      is NULL. PR 28250 [Jari Ahonen <jah@progress.com>]
 
index afc546ede70b3a50b967ab980942477e7df8873a..444c0ab2ed401bba8c79e61ab54771417b05d8c2 100644 (file)
@@ -1070,6 +1070,10 @@ static const char *util_ldap_set_cert_auth(cmd_parms *cmd, void *dummy, const ch
     util_ldap_state_t *st = 
         (util_ldap_state_t *)ap_get_module_config(cmd->server->module_config, 
                                                  &ldap_module);
+    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+    if (err != NULL) {
+        return err;
+    }
 
     ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, cmd->server, 
                       "LDAP: SSL trusted certificate authority file - %s", 
@@ -1086,6 +1090,10 @@ const char *util_ldap_set_cert_type(cmd_parms *cmd, void *dummy, const char *Typ
     util_ldap_state_t *st = 
     (util_ldap_state_t *)ap_get_module_config(cmd->server->module_config, 
                                               &ldap_module);
+    const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+    if (err != NULL) {
+        return err;
+    }
 
     ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, cmd->server, 
                       "LDAP: SSL trusted certificate authority file type - %s",