• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

ChangesH A D16-May-20081 KiB3429

LICENSEH A D30-Apr-20071.9 KiB4039

MANIFESTH A D17-May-2008173 1110

META.ymlH A D17-May-2008289 119

Makefile.PLH A D03-May-20224.5 KiB187168

Password.pmH A D17-May-20083.5 KiB15863

Password.pm-origH A D17-May-20083.5 KiB157115

READMEH A D30-Apr-20072.1 KiB7051

VERSIONH A D17-May-20084 21

test.pl-origH A D30-Apr-20071.2 KiB3729

README

1NAME
2    DBIx::Password - Allows you to create a global password file for
3    DB passwords
4
5SYNOPSIS
6      use DBIx::Password;
7      my $dbh = DBIx::Password->connect($user);
8      my $dbh = DBIx::Password->connect_cached($user);
9      $dbh->getDriver;
10      DBIx::Password::getDriver($user);
11      DBIx::Password::checkVirtualUser($user);
12
13DESCRIPTION
14    Don't you hate keeping track of database passwords and such
15    throughout your scripts? How about the problem of changing those
16    passwords on a mass scale? This module is one possible solution.
17    When you go to build this module it will ask you to create
18    virtual users. For each user you need to specify the database
19    module to use, the database connect string, the username and the
20    password. You will be prompted to give a name to this virtual
21    user. You can add as many as you like.
22
23    I would recommend that if you are only using this with web
24    applications that you change the final permissions on this
25    package after it is installed in site_perl such that only the
26    webserver can read it.
27
28    A method called getDriver has been added so that you can
29    determine what driver is being used (handy for working out
30    database indepence issues).
31
32    If you want to find out if the virtual user is valid, you can
33    call the class method checkVirtualUser(). It returns true (1) if
34    the username is valid, and zero if not.
35
36    Once your are done you can use the connect method (or the
37    connect_cache method) that comes with DBIx-Password and just
38    specify one of the virtual users you defined while making the
39    module.
40
41    BTW I learned the bless hack that is used from Apache::DBI so
42    some credit should go to the authors of that module. This is a
43    rewrite of the module Tangent::DB that I did for slashcode.
44
45    Hope you enjoy it.
46
47INSTALL
48    Basically:
49
50    perl Makefile.PL
51
52    make
53
54    make test
55
56    make install
57
58    Be sure to answer the questions as you make the module
59
60HOME
61    To find out more information look at:
62    http://www.tangent.org/DBIx-Password/
63
64AUTHOR
65    Brian Aker, brian@tangent.org
66
67SEE ALSO
68    perl(1). DBI(3).
69
70