This callback lets you modify referrals returned to the client. Register the callback with the server using slapi_search_internal_callback_pb() .