Returns the next result as an LdapEntry. If automatic referral following is disabled or if a referral was not followed, next() will throw an LdapReferralException when the referral is received.
LdapException A general exception which includes an error
/// message and an Ldap error code.
/// LdapReferralException A referral was received and not
/// followed.
///