LDAP/ObjectClass/SudoRole.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« LDAP/ObjectClass/ShadowAccount.pm ↑ Summary LDAP/ObjectClass/Top.pm »
1 package App::LDAP::ObjectClass::SudoRole;
2  
3 3 ▶use Modern::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 extends qw(App::LDAP::ObjectClass::Top);
8  
9 3 has cn => (
10 is => "rw",
11 isa => "ArrayRef[Str]",
12 required => 1,
13 );
14  
15 3 has [qw( sudoUser
16 sudoHost
17 sudoCommand
18 sudoRunAs
19 sudoRunAsUser
20 sudoRunAsGroup
21 sudoOption
22 description )] => (
23 is => "rw",
24 isa => "ArrayRef[Str]",
25 );
26  
27 3 __PACKAGE__->meta->make_immutable;
28 3 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 3 1;
31  
32 =pod
33  
34 =head1 NAME
35  
36 App::LDAP::ObjectClass::SudoRole - schema of sudoRole
37  
38 =head1 DEFINITION
39  
40 objectclass (
41 1.3.6.1.4.1.15953.9.2.1
42 NAME 'sudoRole'
43 SUP top
44 STRUCTURAL
45 DESC 'Sudoer Entries'
46 MUST ( cn )
47 MAY ( sudoUser $ sudoHost $ sudoCommand $ sudoRunAs $
48 sudoRunAsUser $ sudoRunAsGroup $ sudoOption $ description )
49 )
50  
51 =head1 NOTES
52  
53 This definition is coming with sudo 1.7.0.
54  
55 A sudoRole must contain at least one sudoUser, sudoHost and sudoCommand. Even the schema shows these three MAY be
56 attributes of a sudoRole.
57  
58 As of 1.7.0, sudoRunAs is deprecated. The attribute sudoRunAsUser is the replacement.
59  
60 As of 1.7.5, three more attributes sudoNotBefore, sudoNotAfter and sudoOrder are defined. These three attributes would
61 be supported when 1.7.5 is widely used.
62  
63 =cut
« LDAP/ObjectClass/ShadowAccount.pm ↑ Summary LDAP/ObjectClass/Top.pm »