line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Model::LDAP::Search; |
2
|
|
|
|
|
|
|
# ABSTRACT: Convenience methods for Net::LDAP::Search |
3
|
|
|
|
|
|
|
|
4
|
5
|
|
|
5
|
|
35
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
144
|
|
5
|
5
|
|
|
5
|
|
27
|
use warnings; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
139
|
|
6
|
5
|
|
|
5
|
|
29
|
use base qw/Net::LDAP::Search/; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
2172
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
0
|
|
|
0
|
1
|
|
my ( $self, $class ) = @_; |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
eval { require $class }; |
|
0
|
|
|
|
|
|
|
13
|
0
|
0
|
|
|
|
|
die $@ if $@; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
foreach my $entry ( @{ $self->{entries} } ) { |
|
0
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
bless $entry, $class; |
17
|
0
|
|
|
|
|
|
$entry->_ldap_client( $self->parent ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=pod |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding UTF-8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Catalyst::Model::LDAP::Search - Convenience methods for Net::LDAP::Search |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 VERSION |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
version 0.19 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 DESCRIPTION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Subclass of L<Net::LDAP::Search>, with an additional method to rebless |
41
|
|
|
|
|
|
|
the entries. See L<Catalyst::Model::LDAP::Entry> for more |
42
|
|
|
|
|
|
|
information. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 METHODS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head2 init |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Reblesses search results as objects of the specified class. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SEE ALSO |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over 4 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * L<Catalyst::Model::LDAP> |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item * L<Catalyst::Model::LDAP::Entry> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 AUTHORS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=over 4 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item * Marcus Ramberg |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
71
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head1 AUTHOR |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Gavin Henry <ghenry@surevoip.co.uk> |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Gavin Henry. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
82
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |