lemonldap-ng/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Backends/Local.pm

49 lines
717 B
Perl
Raw Normal View History

2018-06-19 21:05:36 +02:00
package Lemonldap::NG::Common::Conf::Backends::Local;
use strict;
use Lemonldap::NG::Common::Conf::Constants;
2022-01-15 21:47:48 +01:00
our $VERSION = '2.0.14';
2018-06-19 21:05:36 +02:00
sub prereq {
return 1;
}
sub available {
return 1;
}
sub lastCfg {
return 1;
}
sub isLocked {
return 1;
}
sub unlock {
return 1;
}
sub store {
2022-01-15 21:47:48 +01:00
$Lemonldap::NG::Common::Conf::msg = 'Read-only backend!';
2018-06-19 21:05:36 +02:00
return DATABASE_LOCKED;
}
sub load {
return {
cfgNum => 1,
2022-01-15 21:47:48 +01:00
cfgDate => time,
2018-06-19 21:05:36 +02:00
cfgAuthor => 'LLNG Team',
2022-02-16 17:43:29 +01:00
cfgLog =>
2022-01-15 21:47:48 +01:00
q"Do not edit this configuration, Null backend uses lemonldap-ng.ini values only",
2018-06-19 21:05:36 +02:00
};
}
sub delete {
2022-01-15 21:47:48 +01:00
$Lemonldap::NG::Common::Conf::msg = 'Read-only backend!';
2018-06-19 21:05:36 +02:00
return 0;
}
1;