| 1 | package App::LDAP::Command::Del::Sudoer; | ||||||||||||
| 2 | |||||||||||||
| 3 | 1 | ▶ | use Modern::Perl; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | |||||||||||||
| 5 | 1 | ▶ | use Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | |||||||||||||
| 7 | 1 | with qw( App::LDAP::Role::Command | |||||||||||
| 8 | App::LDAP::Role::Bindable ); | ||||||||||||
| 9 | |||||||||||||
| 10 | 1 | ▶ | use App::LDAP::LDIF::Sudoer; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | |||||||||||||
| 12 | 0 | ▶ | sub run { | ||||||||||
|
Subroutine
run: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 13 | 0 | my ($self, ) = @_; | |||||||||||
| 14 | |||||||||||||
| 15 | 0 | ▶ | my $sudoername = $self->extra_argv->[2] or die "no sudoer name specified"; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 16 | |||||||||||||
| 17 | my $sudoer = App::LDAP::LDIF::Sudoer->search( | ||||||||||||
| 18 | base => config()->{sudoers_base}->[0], | ||||||||||||
| 19 | 0 | ▶ | scope => config()->{sudoers_base}->[1] // "sub", | ||||||||||
|
Condition0%0/2
config()->{"sudoers_base"}[1] // "sub"
MC/DC0%0/1
config()->{"sudoers_base"}[1] // "sub"
config()->{"sudoers_base"}[1]
Truth table0%0/2
A
A= config()->{"sudoers_base"}[1]
| |||||||||||||
| 20 | filter => "cn=$sudoername", | ||||||||||||
| 21 | ); | ||||||||||||
| 22 | |||||||||||||
| 23 | 0 | $sudoer->delete; | |||||||||||
| 24 | } | ||||||||||||
| 25 | |||||||||||||
| 26 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||||
| 27 | 1 | ▶ | no Moose; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 28 | |||||||||||||
| 29 | 1 | 1; | |||||||||||