[Issue 5971] back-ldap: Referral chasing is broken