Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
I found this site which explained how you can authenticate Apache against a mySQL server. However, the problem I have with this example is that I still need to provide (on the webserver config) the username and password to connect to the database -- I don't want to do that.
What I'm trying to achieve, is for Apache to ask for a username and password (easy bit), but then to pass that username and password onto my perl code, which will then use the username and password within the DBI dsn connect string for access to the database.
I could go and write my own routine for this, but for the sake of security, I'd like to find a more elegant way of giving my users access to the database.
I'm not trying to be difficult. I'm thinking of security, and building the system to the point where the webserver is just a monkey, doing what it's told. It passes the request onto the database for execution, which is usually far behind at the backend, with no publically accessable address at all. Even if you manage to get onto the web server, you should not be able to get the username and password off any text file on the server -- that's what I'm trying to achieve.
Thank you kind monks..
#!/massyn.pl
Don't -- me without telling me why. If you asked a stupid question, I wouldn't down vote you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Authenticating to mySQL through DBI on Apache?
by tilly (Archbishop) on Jul 13, 2003 at 13:44 UTC | |
|
Re: Authenticating to mySQL through DBI on Apache?
by bobn (Chaplain) on Jul 13, 2003 at 15:44 UTC | |
by tilly (Archbishop) on Jul 14, 2003 at 01:21 UTC | |
|
Re: Authenticating to mySQL through DBI on Apache?
by barrd (Canon) on Jul 13, 2003 at 13:33 UTC | |
|
Re: Authenticating to mySQL through DBI on Apache?
by antirice (Priest) on Jul 13, 2003 at 22:43 UTC |