Skip to content

Commit 5ea201a

Browse files
author
Paul J. Reder
committed
Commit approved revision 732912 backport of PR 46342
*) mod_authnz_ldap: Reduce number of initialization debug messages and make information more clear. PR 46342 [Dan Poirier] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@734895 13f79535-47bb-0310-9956-ffa450edef68
1 parent 86cfa78 commit 5ea201a

3 files changed

Lines changed: 18 additions & 31 deletions

File tree

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-*- coding: utf-8 -*-
22
Changes with Apache 2.2.12
33

4+
*) mod_authnz_ldap: Reduce number of initialization debug messages and make
5+
information more clear. PR 46342 [Dan Poirier]
6+
47
*) mod_cache: Introduce 'no-cache' per-request environment variable
58
to prevent the saving of an otherwise cacheable response.
69
[Eric Covener]

STATUS

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@ RELEASE SHOWSTOPPERS:
8686
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
8787
[ start all new proposals below, under PATCHES PROPOSED. ]
8888

89-
* mod_authnz_ldap: Reduce number of initialization debug messages and make
90-
information more clear. PR 46342
91-
Trunk version of path:
92-
http://svn.apache.org/viewvc?view=rev&revision=732912
93-
Backport version for 2.2.x (trunk applies with fudge):
94-
http://people.apache.org/~rederpj/backport_PR46342_simpleLDAPinit.diff
95-
+1: rederpj, niq, covener
96-
9789

9890
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
9991
[ New proposals should be added at the end of the list ]

modules/aaa/mod_authnz_ldap.c

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -872,31 +872,12 @@ static const char *mod_auth_ldap_parse_url(cmd_parms *cmd,
872872

873873
authn_ldap_config_t *sec = config;
874874

875-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
876-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: `%s'", getpid(), url);
877-
878875
rc = apr_ldap_url_parse(cmd->pool, url, &(urld), &(result));
879876
if (rc != APR_SUCCESS) {
880877
return result->reason;
881878
}
882879
sec->url = apr_pstrdup(cmd->pool, url);
883880

884-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
885-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: Host: %s", getpid(), urld->lud_host);
886-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
887-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: Port: %d", getpid(), urld->lud_port);
888-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
889-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: DN: %s", getpid(), urld->lud_dn);
890-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
891-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: attrib: %s", getpid(), urld->lud_attrs? urld->lud_attrs[0] : "(null)");
892-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
893-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: scope: %s", getpid(),
894-
(urld->lud_scope == LDAP_SCOPE_SUBTREE? "subtree" :
895-
urld->lud_scope == LDAP_SCOPE_BASE? "base" :
896-
urld->lud_scope == LDAP_SCOPE_ONELEVEL? "onelevel" : "unknown"));
897-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
898-
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: filter: %s", getpid(), urld->lud_filter);
899-
900881
/* Set all the values, or at least some sane defaults */
901882
if (sec->host) {
902883
char *p = apr_palloc(cmd->pool, strlen(sec->host) + strlen(urld->lud_host) + 2);
@@ -968,18 +949,29 @@ static const char *mod_auth_ldap_parse_url(cmd_parms *cmd,
968949
{
969950
sec->secure = APR_LDAP_SSL;
970951
sec->port = urld->lud_port? urld->lud_port : LDAPS_PORT;
971-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server,
972-
"LDAP: auth_ldap using SSL connections");
973952
}
974953
else
975954
{
976955
sec->port = urld->lud_port? urld->lud_port : LDAP_PORT;
977-
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, cmd->server,
978-
"LDAP: auth_ldap not using SSL connections");
979956
}
980957

981958
sec->have_ldap_url = 1;
982959

960+
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0,
961+
cmd->server, "[%" APR_PID_T_FMT "] auth_ldap url parse: `%s', Host: %s, Port: %d, DN: %s, attrib: %s, scope: %s, filter: %s, connection mode: %s",
962+
getpid(),
963+
url,
964+
urld->lud_host,
965+
urld->lud_port,
966+
urld->lud_dn,
967+
urld->lud_attrs? urld->lud_attrs[0] : "(null)",
968+
(urld->lud_scope == LDAP_SCOPE_SUBTREE? "subtree" :
969+
urld->lud_scope == LDAP_SCOPE_BASE? "base" :
970+
urld->lud_scope == LDAP_SCOPE_ONELEVEL? "onelevel" : "unknown"),
971+
urld->lud_filter,
972+
sec->secure == APR_LDAP_SSL ? "using SSL": "not using SSL"
973+
);
974+
983975
return NULL;
984976
}
985977

0 commit comments

Comments
 (0)