I don't know of any existing tools that will do that, in part because the configuration of such a system, the authentication, and all the details would be very particular to your setup. Looking at authentication schemes alone, there are many different approaches, and many are specific to various environments.
It would actually be quite easy for you to write your own system that will do this though... I'm sure this is what most people who need to do what you want to do have done.