line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::Session::LDAP; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
70507
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
36
|
|
4
|
1
|
|
|
1
|
|
6
|
use vars qw(@ISA $VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
100
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.5'; |
7
|
|
|
|
|
|
|
@ISA = qw(Apache::Session); |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
613
|
use Apache::Session; |
|
1
|
|
|
|
|
1851
|
|
|
1
|
|
|
|
|
33
|
|
10
|
1
|
|
|
1
|
|
470
|
use Apache::Session::Lock::Null; |
|
1
|
|
|
|
|
189
|
|
|
1
|
|
|
|
|
32
|
|
11
|
1
|
|
|
1
|
|
444
|
use Apache::Session::Store::LDAP; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
44
|
|
12
|
1
|
|
|
1
|
|
647
|
use Apache::Session::Generate::MD5; |
|
1
|
|
|
|
|
368
|
|
|
1
|
|
|
|
|
34
|
|
13
|
1
|
|
|
1
|
|
496
|
use Apache::Session::Serialize::Base64; |
|
1
|
|
|
|
|
5530
|
|
|
1
|
|
|
|
|
126
|
|
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
|
|
|
|
|
|
|
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, Ex.guimard@free.frE |
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 |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |