blib/lib/Lemonldap/NG/Common/Conf/Backends/Local.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 8 totaltotal 0.0% 0 / 35 CC 1 SCAR 6.9
CC
1
Cov
0%
prereq
2.0
available
2.0
lastCfg
2.0
CRAP 2.0
1 package Lemonldap::NG::Common::Conf::Backends::Local;
2  
3 use strict;
4 use Lemonldap::NG::Common::Conf::Constants;
5  
6 our $VERSION = '2.23.0';
7  
8 sub prereq {
9 return 1;
10 }
11  
12 sub available {
13 return 1;
14 }
15  
16 sub lastCfg {
17 return 1;
18 }
19  
20 sub isLocked {
21 return 1;
22 }
23  
24 sub unlock {
25 return 1;
26 }
27  
28 sub store {
29 $Lemonldap::NG::Common::Conf::msg = 'Read-only backend!';
30 return DATABASE_LOCKED;
31 }
32  
33 sub load {
34 return {
35 cfgNum => 1,
36 cfgDate => time,
37 cfgAuthor => 'Noone',
38 cfgLog =>
39 q"Do not edit this configuration, Null backend uses lemonldap-ng.ini values only",
40 };
41 }
42  
43 sub delete {
44 $Lemonldap::NG::Common::Conf::msg = 'Read-only backend!';
45 return 0;
46 }
47  
48 1;