#29134·trino

trino-ldap-group-provider LDAP lookups cause significant delay for each query

Author: mwullinkCreated Apr 16, 2026Updated Sep 17, 2026

Trino version

480

Please describe the bug

The trino-ldap-group-provider is used to fetch groups which are then used in the access control logic. The problem is that the LdapFilteringGroupProvider or LdapSingleQueryGroupProvider are performing 2 LDAP lookups for each SQL query in Trino.

This causes a delay of multiple seconds, which is annoying when using Trino interactively.

Would it be possible to introduce a cache for the group information retrieved from LDAP ( with a configurable evection time)