Interface ReferralConnector

    • Method Detail

      • getReferralConnection

        @NotNull
        LDAPConnection getReferralConnection​(@NotNull
                                             LDAPURL referralURL,
                                             @NotNull
                                             LDAPConnection connection)
                                      throws LDAPException
        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.
        Parameters:
        referralURL - The LDAP URL representing the referral being followed.
        connection - The connection on which the referral was received.
        Returns:
        An LDAP connection established and optionally authenticated to the target system that may be used to attempt to follow a referral.
        Throws:
        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.