As we all know, silly things happen that sometimes require a proof of concept. This one happens to have a core need for writing a mysql "proxy" server, if you will. The functionality consists of one type of query. If a client service sends a specific query, where it's looking up a username/pass combo, then the script needs to ignore the password stored in mysql but then reference a RADIUS server for that information. The application's result is based on the success/failure of the RADIUS query whereby the rows returned would be 1/0 (if 1, it contains the pass that was used). All other queries go right to the mysql server for this application.
So, the question to all is.... does anyone know of a way of making a "mysql server" in perl (ie the existence of a perl module). I've searched cpan/google. I'm sure I'm not asking the right question as all the results that come back discuss on how to make your perl script talk to a mysql server. http://search.cpan.org/~timb/DBI-1.53/lib/DBI/ProxyServer.pm is the closet thing I came across, but I'm not sure it's the right thing.
Yes, I know there are TONS better ways of attacking this... but as I said before there are silly things that happened which lead up to this. In essence, if this proof of concept doesnt work then no harm/foul because the system as a whole can go back into it's previous state. If this does work, then it will justify that the whole system will be rebuilt from scratch to accommodate this new password system.
In reply to DBI/MySQL Proxy by satanklawz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |