From: Francesco Chemolli Date: Thu, 29 Apr 2010 21:53:41 +0000 (+0200) Subject: Fixed symbol clash in digest ldap auth helper. X-Git-Tag: SQUID_3_2_0_1~255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebd20321331e302666b0734275c447c2c360f568;p=thirdparty%2Fsquid.git Fixed symbol clash in digest ldap auth helper. --- diff --git a/helpers/digest_auth/ldap/ldap_backend.c b/helpers/digest_auth/ldap/ldap_backend.c index c7cd8281fd..ccb70afba2 100644 --- a/helpers/digest_auth/ldap/ldap_backend.c +++ b/helpers/digest_auth/ldap/ldap_backend.c @@ -63,7 +63,7 @@ static int encrpass = 0; static int searchscope = LDAP_SCOPE_SUBTREE; static int persistent = 0; static int noreferrals = 0; -static int debug = 0; +static int show_debug_messages = 0; static int port = LDAP_PORT; static int strip_nt_domain = 0; static int aliasderef = LDAP_DEREF_NEVER; @@ -207,7 +207,7 @@ getpassword(char *login, char *realm) snprintf(filter, sizeof(filter), usersearchfilter, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login, escaped_login); retrysrch: - if (debug) + if (show_debug_messages) fprintf(stderr, "user filter '%s', searchbase '%s'\n", filter, searchbase); rc = ldap_search_s(ld, searchbase, searchscope, filter, NULL, 0, &res); @@ -243,7 +243,7 @@ retrysrch: snprintf(searchbase, 8192, "%s=%s, %s", userdnattr, login, userbasedn); retrydnattr: - if (debug) + if (show_debug_messages) fprintf(stderr, "searchbase '%s'\n", searchbase); rc = ldap_search_s(ld, searchbase, searchscope, NULL, NULL, 0, &res); } @@ -256,7 +256,7 @@ retrydnattr: return NULL; } if (!values) { - if (debug) + if (show_debug_messages) printf("No attribute value found\n"); ldap_msgfree(res); return NULL; @@ -274,7 +274,7 @@ retrydnattr: } value++; } - if (debug) + if (show_debug_messages) printf("password: %s\n", password); if (password) password = xstrdup(password); @@ -389,7 +389,7 @@ ldapconnect(void) ld = NULL; } } - if (debug) + if (show_debug_messages) fprintf(stderr, "Connected OK\n"); } } @@ -544,7 +544,7 @@ LDAPArguments(int argc, char **argv) break; #endif case 'd': - debug = 1; + show_debug_messages = 1; break; case 'E': strip_nt_domain = 1;