in reply to Perl Setuid - Oracle Password Hardcoding
I have two perl scripts:
1. getPwd.pl - setuid perl script that returns a password
sub getOraPwd{ ... ... return $password; } getOraPwd();
2. testDBConn.pl
I want to call getPwd.pl in the testDBConn.pl script and assign the result of the getPwd script to the $password variable to connect to a database. Remember the getPwd.pl script is setuid, and therefore setup for the testDBConn.pl to run getPwd.pl
eg.
$username="blah"; $password=result from getPwd.pl $dsn=qq{...}; $dbh=DBI->connect($dsn, $username, $password)};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling a setuid script in a perl script
by afoken (Chancellor) on Nov 19, 2011 at 08:32 UTC | |
by hmadhi (Acolyte) on Nov 21, 2011 at 05:07 UTC | |
by Anonymous Monk on Nov 24, 2011 at 16:19 UTC | |
by afoken (Chancellor) on Nov 24, 2011 at 16:53 UTC | |
by hmadhi (Acolyte) on Nov 24, 2011 at 17:17 UTC | |
|
Re: Calling a setuid script in a perl script
by chilledham (Friar) on Nov 18, 2011 at 16:52 UTC | |
by mbethke (Hermit) on Nov 18, 2011 at 17:00 UTC |