Hi Jon,
Sorry for a rather belated response.
Unfortunately rfinder isn't the best resource for finding routes, especially in Europe which are bound by many restrictions which are noted in countries AIP's/Airway Manuals.
After a quick search, and a confirmation through the CFMU Route validator, this is the correct route for your flight;
IDBID DCT PORLI DCT OGERO UZ409 TODNO
Regarding the SID/STAR, it is going to depend on what runway you are departing and arriving on. While the departure/arrival waypoint (or gate) will be the same (so IDBID and TODNO), the number/letter proceeding it will be different.
However for education purposes, I am going to assume that Runway 03 is in use for departures at Lisbon (LPPT) and 32R for arrivals into Madrid (LEMD).
Therefore after consulting our charts (you can do so via AivlaSoft EFB), we can see that for a departure on 03 we would use the IDBID2N (as our first point on our route is IDBID). For the arrival (STAR), we would fly the TODNO1C arrival (as our last point is TODNO).
Some useful resources when flying in Europe and to find routes are;
Vatroute: http://www.vatroute.net
CFMU Route Validator: http://validation.eurofpl.eu/
If you use those two tools correctly, mainly for Europe flying, you will always have a correct route, going along airways in the correct way and altitude, aswell as a route which links up with current SIDS/STARS.
I hope this helped you out, and if you have any questions post them here!