[BZ1066470]/[SECURITY-834] Adding possibility to authenticate user agains referral LDAP