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

..03-May-2022-

lib/Authen/Simple/H15-Jan-2006-25189

t/H15-Jan-2006-8261

Build.PLH A D15-Jan-2006316 1512

ChangesH A D15-Jan-2006191 96

MANIFESTH A D15-Jan-2006150 1211

META.ymlH A D15-Jan-2006300 1514

Makefile.PLH A D15-Jan-2006397 1412

READMEH A D15-Jan-20062.3 KiB9058

README

1NAME
2    Authen::Simple::DBM - Simple DBM authentication
3
4SYNOPSIS
5        use Authen::Simple::DBM;
6
7        my $dbm = Authen::Simple::DBM->new(
8            path => '/var/db/www/passwd'
9        );
10
11        if ( $dbm->authenticate( $username, $password ) ) {
12            # successfull authentication
13        }
14
15        # or as a mod_perl Authen handler
16
17        PerlModule Authen::Simple::Apache
18        PerlModule Authen::Simple::DBM
19
20        PerlSetVar AuthenSimpleDBM_path "/var/db/www/passwd"
21
22        <Location /protected>
23          PerlAuthenHandler Authen::Simple::DBM
24          AuthType          Basic
25          AuthName          "Protected Area"
26          Require           valid-user
27        </Location>
28
29DESCRIPTION
30    DBM authentication.
31
32METHODS
33    * new
34        This method takes a hash of parameters. The following options are
35        valid:
36
37        * path  Path to DBM file. Usually specified without trailing ".db",
38                ".pag" or ".dir" suffix. Required.
39
40                    path => '/var/db/www/passwd'
41
42        * type  DBM type. Valid options are: "DB", "GDBM", "NDBM" and
43                "SDBM". Defaults to "SDBM".
44
45                    type => 'NDBM'
46
47                * CDB       Constant Database
48
49                * DB        Berkeley DB
50
51                * GDBM      GNU Database Mandager
52
53                * NDBM      New Database Mandager. "path" should be
54                            specified without a trailing ".db" suffix.
55
56                * SDBM      Substitute Database Mandager. Comes with both
57                            with perl and Apache. "path" should be specified
58                            without a trailing ".pag" or ".dir" suffix.
59
60        * log   Any object that supports "debug", "info", "error" and
61                "warn".
62
63                    log => Log::Log4perl->get_logger('Authen::Simple::DBM')
64
65    * authenticate( $username, $password )
66        Returns true on success and false on failure.
67
68SEE ALSO
69    Authen::Simple.
70
71    Authen::Simple::Password.
72
73    htdbm(1)
74
75    dbmmanage(1)
76
77    <http://www.unixpapa.com/incnote/dbm.html> - Overview of various DBM's.
78
79    <http://cr.yp.to/cdb.html> - CDB
80
81    AnyDBM_File - Compares different DBM's
82
83AUTHOR
84    Christian Hansen "ch@ngmedia.com"
85
86COPYRIGHT
87    This program is free software, you can redistribute it and/or modify it
88    under the same terms as Perl itself.
89
90