parent
3285432916
commit
5240cfb528
3 changed files with 35 additions and 2 deletions
@ -0,0 +1,22 @@ |
|||||||
|
{ |
||||||
|
|
||||||
|
my $status = ${'lemonldap-ng'}{'status'} || 'disabled'; |
||||||
|
return "" if ($status ne 'enabled'); |
||||||
|
my @ports = (); |
||||||
|
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80'); |
||||||
|
push @ports, ($modSSL{'TCPPort'} || '443'); |
||||||
|
my $port = join (",", @ports); |
||||||
|
|
||||||
|
$OUT .=<<"EOF"; |
||||||
|
|
||||||
|
[sogo] |
||||||
|
enabled = true |
||||||
|
filter = lemonldap-ng |
||||||
|
logpath = /var/log/messages |
||||||
|
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] |
||||||
|
EOF |
||||||
|
|
||||||
|
$OUT .= " sendmail[name="LemonLDAP::NG",dest=$maildest]\n" |
||||||
|
if ($mail eq 'enabled'); |
||||||
|
|
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
[INCLUDES] |
||||||
|
before = common.conf |
||||||
|
|
||||||
|
[Definition] |
||||||
|
|
||||||
|
_daemon = lemonldap\-ng |
||||||
|
|
||||||
|
failregex = ^\s*%(__prefix_line)s\s*Lemonldap::NG : .* was not found in LDAP directory \(<HOST>\)\s*$ |
||||||
|
^\s*%(__prefix_line)s\s*Lemonldap::NG : Bad password for .* \(<HOST>\)\s*$ |
||||||
|
|
||||||
|
ignoreregex = |
Loading…
Reference in new issue