line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::Session::LDAP; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
25127
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
4
|
1
|
|
|
1
|
|
6
|
use vars qw(@ISA $VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
92
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
$VERSION = '0.2'; |
7
|
|
|
|
|
|
|
@ISA = qw(Apache::Session); |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
4335
|
use Apache::Session; |
|
1
|
|
|
|
|
3011
|
|
|
1
|
|
|
|
|
43
|
|
10
|
1
|
|
|
1
|
|
1740
|
use Apache::Session::Lock::Null; |
|
1
|
|
|
|
|
400
|
|
|
1
|
|
|
|
|
33
|
|
11
|
1
|
|
|
1
|
|
870
|
use Apache::Session::Store::LDAP; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
33
|
|
12
|
1
|
|
|
1
|
|
1770
|
use Apache::Session::Generate::MD5; |
|
1
|
|
|
|
|
411
|
|
|
1
|
|
|
|
|
27
|
|
13
|
1
|
|
|
1
|
|
1959
|
use Apache::Session::Serialize::Base64; |
|
1
|
|
|
|
|
27804
|
|
|
1
|
|
|
|
|
229
|
|
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
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This module is an implementation of Apache::Session. It uses an LDAP directory |
49
|
|
|
|
|
|
|
to store datas. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 AUTHOR |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Xavier Guimard, Ex.guimard@free.frE |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Copyright (C) 2009, 2012 by Xavier Guimard |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
60
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.10.0 or, |
61
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SEE ALSO |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |