Alex Miller's patch for LDAP_RES_SEARCH_REFERENCE.