[AS7-5737] Fixed referrals traversal for roles stored in LDAP referral.