LDAP_OPT_REFERRAL_HOP_LIMIT
ldap_set_option( ld, LDAP_OPT_REFERRAL_HOP_LIMIT, &refhoplim );
case LDAP_OPT_REFERRAL_HOP_LIMIT: