]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: ldap_field_hide_password() - Disable temporarily
authorMarco Bettini <marco.bettini@open-xchange.com>
Thu, 11 Jul 2024 08:04:41 +0000 (08:04 +0000)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:13 +0000 (12:34 +0200)
src/auth/db-ldap.c

index 8c9d587823e09c8b9d884beb7b2f7522bdda1cb9..b2e60677f8b2fea678ae3bd1cf56eb074b8f6691 100644 (file)
@@ -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;
 }