line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::LDAP; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.1.2'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
832
|
use Modern::Perl; |
|
1
|
|
|
|
|
25034
|
|
|
1
|
|
|
|
|
6
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
707
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use MooseX::Singleton; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use App::LDAP::Command; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'App::LDAP::Role'; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub run { |
15
|
|
|
|
|
|
|
my ($self,) = @_; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
App::LDAP::Config->read; |
18
|
|
|
|
|
|
|
App::LDAP::Secret->read; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
App::LDAP::Connection->new( |
21
|
|
|
|
|
|
|
config()->{uri}, |
22
|
|
|
|
|
|
|
port => config()->{port}, |
23
|
|
|
|
|
|
|
version => config()->{ldap_version}, |
24
|
|
|
|
|
|
|
onerror => 'die', |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
App::LDAP::Command |
28
|
|
|
|
|
|
|
->dispatch(@ARGV) |
29
|
|
|
|
|
|
|
->new_with_options |
30
|
|
|
|
|
|
|
->prepare() |
31
|
|
|
|
|
|
|
->run(); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
35
|
|
|
|
|
|
|
no Moose; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
__END__ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
App::LDAP - CLI tool providing common manipulation on LDAP servers |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
use App::LDAP; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
App::LDAP->new->run; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
App::LDAP is intent on providing client-side solution of |
53
|
|
|
|
|
|
|
L<RFC 2307|http://www.ietf.org/rfc/rfc2307.txt>, |
54
|
|
|
|
|
|
|
L<RFC 2798|http://www.ietf.org/rfc/rfc2798.txt>. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
shelling E<lt>navyblueshellingford@gmail.comE<gt> |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SEE ALSO |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Copyright (C) shelling |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The MIT License |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |