From: Marco Bettini Date: Thu, 11 Jul 2024 08:04:41 +0000 (+0000) Subject: auth: ldap_field_hide_password() - Disable temporarily X-Git-Tag: 2.4.1~765 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38947a132f681be3c4cd58a968e9faf72e2fde4;p=thirdparty%2Fdovecot%2Fcore.git auth: ldap_field_hide_password() - Disable temporarily --- diff --git a/src/auth/db-ldap.c b/src/auth/db-ldap.c index 8c9d587823..b2e60677f8 100644 --- a/src/auth/db-ldap.c +++ b/src/auth/db-ldap.c @@ -1196,21 +1196,9 @@ const char *ldap_escape(const char *str, } static bool -ldap_field_hide_password(struct db_ldap_result_iterate_context *ctx, - const char *attr) +ldap_field_hide_password(struct db_ldap_result_iterate_context *ctx ATTR_UNUSED, + const char *attr ATTR_UNUSED) { - const struct ldap_field *field; - - if (ctx->ldap_request->auth_request->set->debug_passwords) - return FALSE; - - array_foreach(ctx->attr_map, field) { - if (strcmp(field->ldap_attr_name, attr) == 0) { - if (strcmp(field->name, "password") == 0 || - strcmp(field->name, "password_noscheme") == 0) - return TRUE; - } - } return FALSE; }