App-Regather
view release on metacpan or search on metacpan
lib/App/Regather/Config.pm view on Meta::CPAN
# -*- mode: cperl; eval: (follow-mode); -*-
#
package App::Regather::Config;
use strict;
use warnings;
use diagnostics;
use parent 'Config::Parser::Ini';
use Carp;
use File::Basename;
use Mail::RFC822::Address qw(valid validlist);
use App::Regather::Plugin;
use constant LDAP => { opt => { async => '',
debug => '',
inet4 => '',
inet6 => '',
keepalive => '',
localaddr => '',
multihomed => '',
onerror => '',
port => 'port',
raw => '',
scheme => '',
timeout => 'timeout',
uri => 'uri',
version => '',
},
ssl => {
cafile => 'tls_cacert',
capath => 'tls_cacertdir',
checkcrl => 'tls_crlfile',
ciphers => 'tls_cipher_suite',
clientcert => 'tls_cert',
clientkey => 'tls_key',
keydecrypt => '',
sslversion => 'tls_protocol_min',
verify => { tls_reqcert => {
none => 'never',
allow => 'optional',
demand => 'require',
hard => 'require',
try => 'optional',
},
},
},
bnd => {
anonymous => '',
dn => 'binddn',
password => 'bindpw',
},
srch=> {
attrs => '',
base => 'base',
filter => '',
raw => '',
scope => '',
sizelimit => 'sizelimit',
timelimit => 'timelimit',
}
};
=pod
=encoding UTF-8
=head1 NAME
App::Regather::Config - config file processing class
=head1 SYNOPSIS
=head1 DESCRIPTION
This is a class to log messages.
lib/App/Regather/Config.pm view on Meta::CPAN
=cut
1;
__DATA__
[core]
altroot = STRING :re="^/tmp/.*" :check=chk_dir
dryrun = NUMBER :default 0
gid = STRING
notify = NUMBER :default 0
notify_email = STRING :mandatory :array :check=chk_notify_email
pid_file = STRING :check=chk_dir_pid :default /var/run/openldap/regather.pid
tt_debug = NUMBER :default 0
tt_path = STRING :check=chk_dir :default /usr/local/etc/regather.d
tt_trim = NUMBER :default 0
uid = STRING
[log]
facility = STRING :default local4
colors = NUMBER :default 0
foreground = NUMBER :default 0
verbosity = NUMBER :default 0
altroot = STRING :check=core_only
dryrun = STRING :check=core_only
pid_file = STRING :check=core_only
tt_debug = STRING :check=core_only
tt_path = STRING :check=core_only
[ldap]
altroot = STRING :check=core_only
dryrun = STRING :check=core_only
pid_file = STRING :check=core_only
tt_debug = STRING :check=core_only
tt_path = STRING :check=core_only
ANY = STRING
[ldap srch]
attrs = STRING
base = STRING
filter = STRING :mandatory
raw = STRING
scope = STRING :default sub
sizelimit = NUMBER :default 0
timelimit = NUMBER :default 0
log_base = STRING
[ldap bnd]
anonymous = STRING
bindpw = STRING
dn = STRING
password = STRING
[ldap opt]
async = NUMBER :default 0
debug = NUMBER :default 0
inet4 = STRING
inet6 = STRING
keepalive = STRING
localaddr = STRING
multihomed = STRING
onerror = STRING
port = STRING
raw = STRING
scheme = STRING
timeout = STRING
uri = STRING
version = NUMBER :default 3
[ldap ssl]
cafile = STRING
capath = STRING
checkcrl = STRING
ciphers = STRING
clientcert = STRING
clientkey = STRING
keydecrypt = STRING
ssl = STRING
sslversion = STRING
verify = STRING
[service ANY]
all_attr = NUMBER :default 0
chmod = OCTAL :default 0640
chown = NUMBER :default 1
ctrl_attr = STRING :mandatory :array
ctrl_srv_re = STRING :mandatory
gid = STRING
out_ext = STRING
out_file = STRING
out_file_pfx = STRING
out_path = STRING :check=chk_dir
tt_file = STRING :check=chk_file_tt
uid = STRING
ns_attr = STRING
ns_keyfile = STRING
ns_ttl = NUMBER :default 600
ns_txt_pfx = STRING :default REGATHER:
ns_server = STRING :array
ns_zone = STRING :array
plugin = STRING :mandatory :array :check=chk_plugin
notify = NUMBER :default 0 :check=chk_depend_notify
post_process = STRING :array
skip = NUMBER :default 0
[service ANY map s]
ANY = STRING
altroot = STRING :check=core_only
dryrun = STRING :check=core_only
pid_file = STRING :check=core_only
tt_debug = STRING :check=core_only
tt_path = STRING :check=core_only
[service ANY map m]
ANY = STRING
altroot = STRING :check=core_only
dryrun = STRING :check=core_only
pid_file = STRING :check=core_only
( run in 0.234 second using v1.01-cache-2.11-cpan-4d50c553e7e )