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

48 lines
687 B
Perl

package Lemonldap::NG::Common::Conf::Backends::Local;
use strict;
use Lemonldap::NG::Common::Conf::Constants;
our $VERSION = '2.1.0';
sub prereq {
return 1;
}
sub available {
return 1;
}
sub lastCfg {
return 1;
}
sub isLocked {
return 1;
}
sub unlock {
return 1;
}
sub store {
$Lemonldap::NG::Common::Conf::msg = 'Read-only backend !';
return DATABASE_LOCKED;
}
sub load {
return {
cfgNum => 1,
cfgAuthor => 'LLNG Team',
cfgLog =>
q"Don't edit this configuration, Null backend uses only lemonldap-ng.ini values",
};
}
sub delete {
$Lemonldap::NG::Common::Conf::msg = 'Read-only backend !';
return 0;
}
1;