DBIx-MyPassword
view release on metacpan or search on metacpan
could secure my password information in a shared environment. Here is
how I do it. If you see holes in this, please let me know. Also, I do
most of my development on some flavor of UNIX, Linux, AIX, etc. These
systems are what I know best. If there is a better (or just plain
different) way to do security on another system, let me know and I'll
include it here.
For *X, all that you have to do is change the permissions on your
password file so that you are the only person who can read it. A simple:
chmod 400 .mypassword
is all that it takes. Each user can have their own password file that
only they can read. The caveat of this is that only scripts executed by
you can read the file too... not sure how that fairs for web
development.
SUBROUTINE DETAILS
connect(virtual_user)
An override of the of the DBI::connect subroutine. This method looks up
the specified virtual user and returns a standard DBI connection.
README.html view on Meta::CPAN
<li><strong><a name="item_home_directory">Home Directory</a></strong><br />
</li>
A file named '.mypassword' in the users home directory, as specified by the HOME environment variable
<p></p></ol>
<p>
</p>
<h2><a name="securing_the_password_file">Securing The Password File</a></h2>
<p>One of the primary reasons that this module was developed was so that I could secure my password information in a shared environment. Here is how I do it. If you see holes in this, please let me know. Also, I do most of my development on some f...
<p>For *X, all that you have to do is change the permissions on your password file so that you are the only person who can read it. A simple:</p>
<pre>
chmod 400 .mypassword</pre>
<p>is all that it takes. Each user can have their own password file that only they can read. The caveat of this is that only scripts executed by you can read the file too... not sure how that fairs for web development.</p>
<p>
</p>
<hr />
<h1><a name="subroutine_details">SUBROUTINE DETAILS</a></h1>
<p>
</p>
<h2><a name="connect_virtual_user_"><code>connect(virtual_user)</code></a></h2>
<p>An override of the of the DBI::connect subroutine. This method looks up the specified virtual user and returns a standard DBI connection.</p>
<p>
lib/DBIx/MyPassword.pm view on Meta::CPAN
could secure my password information in a shared environment. Here is
how I do it. If you see holes in this, please let me know. Also, I do
most of my development on some flavor of UNIX, Linux, AIX, etc. These
systems are what I know best. If there is a better (or just plain
different) way to do security on another system, let me know and I'll
include it here.
For *X, all that you have to do is change the permissions on your
password file so that you are the only person who can read it. A simple:
chmod 400 .mypassword
is all that it takes. Each user can have their own password file that
only they can read. The caveat of this is that only scripts executed
by you can read the file too... not sure how that fairs for web
development.
=head1 SUBROUTINES/METHODS
=head2 connect(virtual_user)
( run in 0.355 second using v1.01-cache-2.11-cpan-c8ce075bde7 )