File Coverage

blib/lib/Apache/Session/LDAP.pm
Criterion Covered Total %
statement 21 29 72.4
branch n/a
condition n/a
subroutine 7 8 87.5
pod 0 1 0.0
total 28 38 73.6


line stmt bran cond sub pod time code
1             package Apache::Session::LDAP;
2              
3 1     1   23734 use strict;
  1         2  
  1         48  
4 1     1   6 use vars qw(@ISA $VERSION);
  1         1  
  1         95  
5              
6             $VERSION = '0.4';
7             @ISA = qw(Apache::Session);
8              
9 1     1   890 use Apache::Session;
  1         2017  
  1         40  
10 1     1   753 use Apache::Session::Lock::Null;
  1         220  
  1         32  
11 1     1   619 use Apache::Session::Store::LDAP;
  1         4  
  1         48  
12 1     1   835 use Apache::Session::Generate::MD5;
  1         387  
  1         36  
13 1     1   643 use Apache::Session::Serialize::Base64;
  1         7210  
  1         167  
14              
15             sub populate {
16 0     0 0   my $self = shift;
17              
18 0           $self->{object_store} = new Apache::Session::Store::LDAP $self;
19 0           $self->{lock_manager} = new Apache::Session::Lock::Null $self;
20 0           $self->{generate} = \&Apache::Session::Generate::MD5::generate;
21 0           $self->{validate} = \&Apache::Session::Generate::MD5::validate;
22 0           $self->{serialize} = \&Apache::Session::Serialize::Base64::serialize;
23 0           $self->{unserialize} = \&Apache::Session::Serialize::Base64::unserialize;
24              
25 0           return $self;
26             }
27              
28             1;
29              
30             =pod
31              
32             =head1 NAME
33              
34             Apache::Session::LDAP - An implementation of Apache::Session
35              
36             =head1 SYNOPSIS
37              
38             use Apache::Session::LDAP;
39             tie %hash, 'Apache::Session::LDAP', $id, {
40             ldapServer => 'ldap://localhost:389',
41             ldapConfBase => 'dmdName=applications,dc=example,dc=com',
42             ldapBindDN => 'cn=admin,dc=example,dc=com',
43             ldapBindPassword => 'pass',
44             ldapObjectClass => 'applicationProcess',
45             ldapAttributeId => 'cn',
46             ldapAttributeContent => 'description',
47             };
48              
49             =head1 DESCRIPTION
50              
51             This module is an implementation of Apache::Session. It uses an LDAP directory
52             to store datas.
53              
54             =head1 AUTHOR
55              
56             Xavier Guimard, Ex.guimard@free.frE
57              
58             =head1 COPYRIGHT AND LICENSE
59              
60             Copyright (C) 2009, 2012 by Xavier Guimard
61             Copyright (C) 2014, 2015 by Clement Oudot
62              
63             This library is free software; you can redistribute it and/or modify
64             it under the same terms as Perl itself, either Perl version 5.10.0 or,
65             at your option, any later version of Perl 5 you may have available.
66              
67             =head1 SEE ALSO
68              
69             L
70              
71             =cut