LDAP.pm

filter: Statementstmt 75.0% 24 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 75.6% 31 / 41 CC 1 SCAR 1.2
CC
1
Cov
75%
populate
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Store/LDAP.pm ↑ Summary
1 package Apache::Session::LDAP;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use vars qw(@ISA $VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 $VERSION = '0.5';
7 1 @ISA = qw(Apache::Session);
8  
9 1 ▶use Apache::Session;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Apache::Session::Lock::Null;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Apache::Session::Store::LDAP;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use Apache::Session::Generate::MD5;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use Apache::Session::Serialize::Base64;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 0 ▶sub populate {
Subroutine populate: not called CC=1 SCAR=6.9
Pod undocumented
16 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 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 ldapVerify => 'require',
48 ldapCAFile => '/etc/ssl/certs/ca-certificates.crt',
49 };
50  
51 =head1 DESCRIPTION
52  
53 This module is an implementation of Apache::Session. It uses an LDAP directory
54 to store datas.
55  
56 =head1 AUTHOR
57  
58 Xavier Guimard, E<lt>x.guimard@free.frE<gt>
59  
60 =head1 COPYRIGHT AND LICENSE
61  
62 Copyright (C) 2009, 2012 by Xavier Guimard
63 Copyright (C) 2014, 2015 by Clement Oudot
64  
65 This library is free software; you can redistribute it and/or modify
66 it under the same terms as Perl itself, either Perl version 5.10.0 or,
67 at your option, any later version of Perl 5 you may have available.
68  
69 =head1 SEE ALSO
70  
71 L<Apache::Session>
72  
73 =cut
« Store/LDAP.pm ↑ Summary