Commit 88ebd615 authored by Graham Leggett's avatar Graham Leggett
Browse files

Quotes cannot be used around require group and require dn

directives, update the documentation to reflect this. Also add
quotes around the dn and group within debug messages, to make it
more obvious why authentication is failing if quotes are used in
error.
PR:	19304
Obtained from:
Submitted by:
Reviewed by:	minfrin, jim, trawick, bnicholes


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103731 13f79535-47bb-0310-9956-ffa450edef68
parent c65b2ddb
Loading
Loading
Loading
Loading
+6 −0
Changes for CHANGES: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
Changes with Apache 2.0.50
  *) Quotes cannot be used around require group and require dn
     directives, update the documentation to reflect this. Also add
     quotes around the dn and group within debug messages, to make it
     more obvious why authentication is failing if quotes are used in
     error. PR 19304 [Graham Leggett]
  *) The Microsoft LDAP SDK escapes filters for us, stop util_ldap
     from escaping filters twice when the backslash character is used.
     PR 24437 [Jess Holle <jessh@ptc.com>]
+1 −11
Changes for STATUS: 1 added line, 11 removed lines.
Original line number Diff line number Diff line
APACHE 2.0 STATUS:                                              -*-text-*-
Last modified at [$Date: 2004/05/21 23:20:48 $]
Last modified at [$Date: 2004/05/21 23:39:41 $]

Release:

@@ -85,16 +85,6 @@ PATCHES TO BACKPORT FROM 2.1
       PR 26686 [Jari Ahonen <jah@progress.com>]
       +1: jim, trawick, bnicholes

    *) Quotes cannot be used around require group and require dn
       directives, update the documentation to reflect this. Also add
       quotes around the dn and group within debug messages, to make it
       more obvious why authentication is failing if quotes are used in
       error.
       docs/manual/mod/mod_auth_ldap.xml r1.18
       modules/experimental/mod_auth_ldap.c r1.27
       PR 19304
       +1: minfrin, jim, trawick, bnicholes

    *) Fix handling of IPv6 numeric strings in mod_proxy.
         modules/proxy/proxy_ftp.c r1.141, r1.142
         modules/proxy/proxy_http.c r1.186
+5 −5
Changes for modules/experimental/mod_auth_ldap.c: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -574,8 +574,8 @@ int mod_auth_ldap_auth_checker(request_rec *r)
                default: {
                    ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r, 
                                  "[%d] auth_ldap authorise: "
                                  "require dn: LDAP error [%s][%s]",
                                  getpid(), ldc->reason, ldap_err2string(result));
                                  "require dn \"%s\": LDAP error [%s][%s]",
                                  getpid(), t, ldc->reason, ldap_err2string(result));
                }
            }
        }
@@ -600,7 +600,7 @@ int mod_auth_ldap_auth_checker(request_rec *r)
            }

            ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r, 
                          "[%d] auth_ldap authorise: require group: testing for group membership in `%s'", 
                          "[%d] auth_ldap authorise: require group: testing for group membership in \"%s\"", 
		          getpid(), t);

            for (i = 0; i < sec->groupattr->nelts; i++) {
@@ -620,9 +620,9 @@ int mod_auth_ldap_auth_checker(request_rec *r)
                    }
                    default: {
                        ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r, 
                                      "[%d] auth_ldap authorise: require group: "
                                      "[%d] auth_ldap authorise: require group \"%s\": "
                                      "authorisation failed [%s][%s]",
                                      getpid(), ldc->reason, ldap_err2string(result));
                                      getpid(), t, ldc->reason, ldap_err2string(result));
                    }
                }
            }