See #4281 for the background.
In erlang/otp#5538, the eldap_search_result record gets a new field, which means matching
will break for code that was compiled on any earlier version (e.g. 24.0):
https://github.com/erlang/otp/pull/5538/files#diff-30e064e89b115da7e974f229ed5c92f28e489da679ef42f17e70b9e7cf874179R24.
This happens in the RabbitMQ authN/authZ backend for LDAP in this case statement.
Matching on both tuples both pre-24.3 and 24.3+ instead of a record should help. We have run into this before.
Note that CI would not hit this issue. In order to reproduce, you have to build on Erlang pre-24.3 but run on 24.3.