Retrieves an (optionally authenticated) LDAP connection for use in
following a referral as defined in the provided LDAP URL. The connection
will automatically be closed after the referral has been followed.
referralURL - The LDAP URL representing the referral being followed.
connection - The connection on which the referral was received.
An LDAP connection established and optionally authenticated to the
target system that may be used to attempt to follow a referral.
LDAPException - If a problem occurs while establishing the
connection or performing authentication on it. If
an exception is thrown, then any underlying
connection should be terminated before the
exception is thrown.