The 3rd party firmware avaiable for the WRT54g allows you to specify an authentication server. Then it is just a matter of you installing the software on a box and setting it up. You could also forgo the router completly and just create a BSD/Linux router that does all sorts of cool things.