]> git.proxmox.com Git - pmg-api.git/log
pmg-api.git
7 years agopmgpolicy: import from old repository
Dietmar Maurer [Tue, 21 Feb 2017 09:01:40 +0000 (10:01 +0100)]
pmgpolicy: import from old repository

7 years agoadd read-only API for cluster config
Dietmar Maurer [Tue, 21 Feb 2017 08:29:45 +0000 (09:29 +0100)]
add read-only API for cluster config

7 years agoPMG/ClusterConfig.pm: better code to read/write cluster config
Dietmar Maurer [Tue, 21 Feb 2017 08:14:14 +0000 (09:14 +0100)]
PMG/ClusterConfig.pm: better code to read/write cluster config

using SectionConfig.

7 years agoPMG/LDAPConfig.pm: verify sectionId inside parse_section_header
Dietmar Maurer [Tue, 21 Feb 2017 05:31:03 +0000 (06:31 +0100)]
PMG/LDAPConfig.pm: verify sectionId inside parse_section_header

7 years agoPMG/API2/Domains.pm: full implementation
Dietmar Maurer [Mon, 20 Feb 2017 15:23:53 +0000 (16:23 +0100)]
PMG/API2/Domains.pm: full implementation

7 years agoPMG/API2/Config.pm: use correct section IDs
Dietmar Maurer [Mon, 20 Feb 2017 15:08:05 +0000 (16:08 +0100)]
PMG/API2/Config.pm: use correct section IDs

7 years agoadd API for relay domains
Dietmar Maurer [Mon, 20 Feb 2017 15:05:29 +0000 (16:05 +0100)]
add API for relay domains

7 years agofully implement ldap configuration API.
Dietmar Maurer [Mon, 20 Feb 2017 11:42:24 +0000 (12:42 +0100)]
fully implement ldap configuration API.

7 years agoPMG/LDAPConfig.pm: new helper lock_config
Dietmar Maurer [Mon, 20 Feb 2017 11:13:47 +0000 (12:13 +0100)]
PMG/LDAPConfig.pm: new helper lock_config

7 years agoPMG/API2/LDAP.pm: start LDAP API
Dietmar Maurer [Mon, 20 Feb 2017 10:47:41 +0000 (11:47 +0100)]
PMG/API2/LDAP.pm: start LDAP API

7 years agofix permissions on /etc/proxmox/ldap.conf
Dietmar Maurer [Mon, 20 Feb 2017 10:34:37 +0000 (11:34 +0100)]
fix permissions on /etc/proxmox/ldap.conf

This file may contain passwords.

7 years agoadd more ldap properties, cleanup code
Dietmar Maurer [Mon, 20 Feb 2017 10:32:22 +0000 (11:32 +0100)]
add more ldap properties, cleanup code

7 years agoPVE::Config: remove type ldap (use PVE::LDAPConfig instead)
Dietmar Maurer [Mon, 20 Feb 2017 09:24:37 +0000 (10:24 +0100)]
PVE::Config: remove type ldap (use PVE::LDAPConfig instead)

7 years agoadd new class to read ldap configuration
Dietmar Maurer [Mon, 20 Feb 2017 09:04:54 +0000 (10:04 +0100)]
add new class to read ldap configuration

we use a separate file now.

7 years agoNEWS: comment about remove FuzzyOCR
Dietmar Maurer [Mon, 20 Feb 2017 08:37:11 +0000 (09:37 +0100)]
NEWS: comment about remove FuzzyOCR

7 years agomove ruledb API to /config/ruledb
Dietmar Maurer [Mon, 20 Feb 2017 07:54:47 +0000 (08:54 +0100)]
move ruledb API to /config/ruledb

7 years agocorrectly declare $output var
Dietmar Maurer [Mon, 20 Feb 2017 07:54:19 +0000 (08:54 +0100)]
correctly declare $output var

7 years agouse 'postfix@-' if $service eq 'postfix';
Dietmar Maurer [Mon, 20 Feb 2017 07:51:35 +0000 (08:51 +0100)]
use 'postfix@-' if $service eq 'postfix';

7 years agorestart services when configuration changes
Dietmar Maurer [Mon, 20 Feb 2017 06:51:48 +0000 (07:51 +0100)]
restart services when configuration changes

7 years agoadd pmg-smtp-filter to service list
Dietmar Maurer [Mon, 20 Feb 2017 06:40:25 +0000 (07:40 +0100)]
add pmg-smtp-filter to service list

7 years agouse new helper PMG::Utils::service_cmd()
Dietmar Maurer [Mon, 20 Feb 2017 06:20:40 +0000 (07:20 +0100)]
use new helper PMG::Utils::service_cmd()

7 years agoPMG/Utils.pm: new helper service_cmd()
Dietmar Maurer [Mon, 20 Feb 2017 06:18:37 +0000 (07:18 +0100)]
PMG/Utils.pm: new helper service_cmd()

7 years agoPMG::Config::rewrite_config_*: return true if something changed
Dietmar Maurer [Mon, 20 Feb 2017 06:08:56 +0000 (07:08 +0100)]
PMG::Config::rewrite_config_*: return true if something changed

7 years agoremove unused rewrite_config_script
Dietmar Maurer [Mon, 20 Feb 2017 05:53:23 +0000 (06:53 +0100)]
remove unused rewrite_config_script

7 years agoPMG/Config.pm: use file_get/set_contents instead of AtomicFile.
Dietmar Maurer [Mon, 20 Feb 2017 05:50:36 +0000 (06:50 +0100)]
PMG/Config.pm: use file_get/set_contents instead of AtomicFile.

And detect changes.

7 years agoremove wrong my declaration
Dietmar Maurer [Sun, 19 Feb 2017 13:34:26 +0000 (14:34 +0100)]
remove wrong my declaration

7 years agoset proxyto attribute for config API
Dietmar Maurer [Sun, 19 Feb 2017 13:33:26 +0000 (14:33 +0100)]
set proxyto attribute for config API

7 years agopmgsh: implement porxyto master
Dietmar Maurer [Sun, 19 Feb 2017 13:33:07 +0000 (14:33 +0100)]
pmgsh: implement porxyto master

7 years agomove get_cluster_node to PMG::Cluster
Dietmar Maurer [Sun, 19 Feb 2017 13:32:26 +0000 (14:32 +0100)]
move get_cluster_node to PMG::Cluster

7 years agofully implement config read/write API
Dietmar Maurer [Sun, 19 Feb 2017 11:00:33 +0000 (12:00 +0100)]
fully implement config read/write API

7 years agonew helper lock_config()
Dietmar Maurer [Sun, 19 Feb 2017 08:42:07 +0000 (09:42 +0100)]
new helper lock_config()

7 years agoarchivemaxrec: add missing property type
Dietmar Maurer [Sun, 19 Feb 2017 08:30:45 +0000 (09:30 +0100)]
archivemaxrec: add missing property type

7 years agomove config API from /nodes/config to /config
Dietmar Maurer [Sun, 19 Feb 2017 08:21:59 +0000 (09:21 +0100)]
move config API from /nodes/config to /config

7 years agoinstall PMG/API2/Config.pm
Dietmar Maurer [Fri, 17 Feb 2017 18:08:20 +0000 (19:08 +0100)]
install PMG/API2/Config.pm

7 years agorun pmgsh verifyapi
Dietmar Maurer [Fri, 17 Feb 2017 18:03:45 +0000 (19:03 +0100)]
run pmgsh verifyapi

7 years agofix typos
Dietmar Maurer [Fri, 17 Feb 2017 18:02:35 +0000 (19:02 +0100)]
fix typos

7 years agoPMG::Cluster::remote_node_ip: lookup ip in cluster config
Dietmar Maurer [Fri, 17 Feb 2017 17:58:33 +0000 (18:58 +0100)]
PMG::Cluster::remote_node_ip: lookup ip in cluster config

7 years agoPMG/HTTPServer.pm: allow to set proxyto => 'master'
Dietmar Maurer [Fri, 17 Feb 2017 17:32:56 +0000 (18:32 +0100)]
PMG/HTTPServer.pm: allow to set proxyto => 'master'

7 years agoPMG/API2/Config.pm: update_section dummy
Dietmar Maurer [Fri, 17 Feb 2017 16:59:00 +0000 (17:59 +0100)]
PMG/API2/Config.pm: update_section dummy

does not work ...

7 years agorename section_id to section
Dietmar Maurer [Fri, 17 Feb 2017 16:58:31 +0000 (17:58 +0100)]
rename section_id to section

7 years agoadd configuration API
Dietmar Maurer [Fri, 17 Feb 2017 16:13:25 +0000 (17:13 +0100)]
add configuration API

7 years agodepend on libterm-readline-gnu-perl
Dietmar Maurer [Fri, 17 Feb 2017 15:58:10 +0000 (16:58 +0100)]
depend on libterm-readline-gnu-perl

used by pmgsh

7 years agonew tool pmgsh
Dietmar Maurer [Fri, 17 Feb 2017 15:48:56 +0000 (16:48 +0100)]
new tool pmgsh

mostly copied from pve-manager (pvesh)

7 years agopmg-smtp-filter: adjust size for fast exit (allow 400MB)
Dietmar Maurer [Fri, 17 Feb 2017 12:04:31 +0000 (13:04 +0100)]
pmg-smtp-filter: adjust size for fast exit (allow 400MB)

7 years agocorrectly use PMG::SMTPPrinter
Dietmar Maurer [Fri, 17 Feb 2017 12:01:05 +0000 (13:01 +0100)]
correctly use PMG::SMTPPrinter

7 years agoinstall pmg-smtp-filter.service
Dietmar Maurer [Fri, 17 Feb 2017 11:49:08 +0000 (12:49 +0100)]
install pmg-smtp-filter.service

7 years agoinstall pmg-smtp-filter
Dietmar Maurer [Fri, 17 Feb 2017 11:31:49 +0000 (12:31 +0100)]
install pmg-smtp-filter

7 years agouse texthash for /etc/postfix/transport
Dietmar Maurer [Fri, 17 Feb 2017 11:09:03 +0000 (12:09 +0100)]
use texthash for /etc/postfix/transport

7 years agoadd code to read/write transport map
Dietmar Maurer [Fri, 17 Feb 2017 11:04:09 +0000 (12:04 +0100)]
add code to read/write transport map

7 years agoimplement more configuration properies and templates
Dietmar Maurer [Fri, 17 Feb 2017 10:21:42 +0000 (11:21 +0100)]
implement more configuration properies and templates

7 years agodepend on clamav-freshclam and postfix
Dietmar Maurer [Thu, 16 Feb 2017 11:34:41 +0000 (12:34 +0100)]
depend on clamav-freshclam and postfix

7 years agonew helpers rewrite_dot_forward() and rewrite_config_postgres()
Dietmar Maurer [Thu, 16 Feb 2017 11:19:42 +0000 (12:19 +0100)]
new helpers rewrite_dot_forward() and rewrite_config_postgres()

7 years agopmgconfig: new CLI helper
Dietmar Maurer [Thu, 16 Feb 2017 11:08:00 +0000 (12:08 +0100)]
pmgconfig: new CLI helper

7 years agoPMG/Config.pm: new helper set()
Dietmar Maurer [Thu, 16 Feb 2017 09:25:20 +0000 (10:25 +0100)]
PMG/Config.pm: new helper set()

7 years agopmg-smtp-filter: avoid long sleep in testmode
Dietmar Maurer [Thu, 16 Feb 2017 08:14:53 +0000 (09:14 +0100)]
pmg-smtp-filter: avoid long sleep in testmode

use a retry loop instead.

7 years agoBCC.pm: correctly use PMG::Utils
Dietmar Maurer [Thu, 16 Feb 2017 07:58:30 +0000 (08:58 +0100)]
BCC.pm: correctly use PMG::Utils

7 years agopmg-smtp-filter: do not replace vars in RULE_INFO
Dietmar Maurer [Thu, 16 Feb 2017 07:46:09 +0000 (08:46 +0100)]
pmg-smtp-filter: do not replace vars in RULE_INFO

This never worked, because subst_vars is not recursive, so the result
depends on the hash sort order!

7 years agosubst_values: cleanup regex
Dietmar Maurer [Thu, 16 Feb 2017 07:41:19 +0000 (08:41 +0100)]
subst_values: cleanup regex

7 years agoanalyze_virus_clam: code cleanup
Dietmar Maurer [Thu, 16 Feb 2017 07:08:41 +0000 (08:08 +0100)]
analyze_virus_clam: code cleanup

7 years agouse template code to PMG::Config
Dietmar Maurer [Thu, 16 Feb 2017 06:58:25 +0000 (07:58 +0100)]
use template code to PMG::Config

7 years agoclamd.conf.in: remove unknown option AllowSupplementaryGroups
Dietmar Maurer [Wed, 15 Feb 2017 19:12:42 +0000 (20:12 +0100)]
clamd.conf.in: remove unknown option AllowSupplementaryGroups

7 years agoPMG::Config::get_config: iterate over all sections
Dietmar Maurer [Wed, 15 Feb 2017 18:49:52 +0000 (19:49 +0100)]
PMG::Config::get_config: iterate over all sections

7 years agoPMG/Config.pm: add more config properties, new helper rewrite_config_clam()
Dietmar Maurer [Wed, 15 Feb 2017 18:31:04 +0000 (19:31 +0100)]
PMG/Config.pm: add more config properties, new helper rewrite_config_clam()

7 years agoinstall clamav config templates
Dietmar Maurer [Wed, 15 Feb 2017 18:29:46 +0000 (19:29 +0100)]
install clamav config templates

7 years agotemplates/freshclam.conf.in: add template for freshclam config
Dietmar Maurer [Wed, 15 Feb 2017 18:28:28 +0000 (19:28 +0100)]
templates/freshclam.conf.in: add template for freshclam config

7 years agotemplates/clamd.conf.in: new template for clamd
Dietmar Maurer [Wed, 15 Feb 2017 18:04:02 +0000 (19:04 +0100)]
templates/clamd.conf.in: new template for clamd

7 years agoPMG/Config.pm: new helper rewrite_config_spam()
Dietmar Maurer [Wed, 15 Feb 2017 16:30:08 +0000 (17:30 +0100)]
PMG/Config.pm: new helper rewrite_config_spam()

7 years agoPMG::Utils::rewrite_config_file: pass pmg_cfg as first argument
Dietmar Maurer [Wed, 15 Feb 2017 16:29:06 +0000 (17:29 +0100)]
PMG::Utils::rewrite_config_file: pass pmg_cfg as first argument

7 years agoMakefile: install templates
Dietmar Maurer [Wed, 15 Feb 2017 16:27:55 +0000 (17:27 +0100)]
Makefile: install templates

7 years agotemplates/razor-agent.conf.in: template for razor2 config
Dietmar Maurer [Wed, 15 Feb 2017 16:11:56 +0000 (17:11 +0100)]
templates/razor-agent.conf.in: template for razor2 config

7 years agoPMG/Config.pm: add use_awl and use_razor options
Dietmar Maurer [Wed, 15 Feb 2017 15:57:42 +0000 (16:57 +0100)]
PMG/Config.pm: add use_awl and use_razor options

7 years agotemplates/v320.pre.in: add another SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:53:53 +0000 (16:53 +0100)]
templates/v320.pre.in: add another SA config template

7 years agotemplates/v310.pre.in: add anothe SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:51:36 +0000 (16:51 +0100)]
templates/v310.pre.in: add anothe SA config template

7 years agoPMG/Config.pm: add use_ocr options
Dietmar Maurer [Wed, 15 Feb 2017 15:45:25 +0000 (16:45 +0100)]
PMG/Config.pm: add use_ocr options

7 years agotemplates/init.pre.in: add another SA config template
Dietmar Maurer [Wed, 15 Feb 2017 15:41:45 +0000 (16:41 +0100)]
templates/init.pre.in: add another SA config template

7 years agoadd template for SA config local.cf
Dietmar Maurer [Wed, 15 Feb 2017 12:07:40 +0000 (13:07 +0100)]
add template for SA config local.cf

7 years agoPMG/Utils.pm: new helper rewrite_config_file()
Dietmar Maurer [Wed, 15 Feb 2017 11:54:27 +0000 (12:54 +0100)]
PMG/Utils.pm: new helper rewrite_config_file()

7 years agoPMG/Config.pm: new helper get_config()
Dietmar Maurer [Wed, 15 Feb 2017 11:52:37 +0000 (12:52 +0100)]
PMG/Config.pm: new helper get_config()

7 years agoadd more configuration properties, new helper get_section()
Dietmar Maurer [Wed, 15 Feb 2017 11:47:18 +0000 (12:47 +0100)]
add more configuration properties, new helper get_section()

7 years agofix expected test output
Dietmar Maurer [Wed, 15 Feb 2017 09:35:46 +0000 (10:35 +0100)]
fix expected test output

7 years agoadd application/x-ms-dos-executable for dangerous content filter
Dietmar Maurer [Wed, 15 Feb 2017 09:34:12 +0000 (10:34 +0100)]
add application/x-ms-dos-executable for dangerous content filter

7 years agoadd NEWS file
Dietmar Maurer [Wed, 15 Feb 2017 09:32:52 +0000 (10:32 +0100)]
add NEWS file

7 years agoAccept.pm: fix short_descr
Dietmar Maurer [Wed, 15 Feb 2017 09:18:56 +0000 (10:18 +0100)]
Accept.pm: fix short_descr

7 years agobetter test output: call diff with option -u
Dietmar Maurer [Wed, 15 Feb 2017 09:10:18 +0000 (10:10 +0100)]
better test output: call diff with option -u

7 years agoMatchField.pm: call correct constructor
Dietmar Maurer [Wed, 15 Feb 2017 09:09:24 +0000 (10:09 +0100)]
MatchField.pm: call correct constructor

7 years agopmg-smtp-filter: create spool directories at startup
Dietmar Maurer [Wed, 15 Feb 2017 07:34:55 +0000 (08:34 +0100)]
pmg-smtp-filter: create spool directories at startup

7 years agodo not use taint mode (revert previous commit)
Dietmar Maurer [Wed, 15 Feb 2017 07:33:25 +0000 (08:33 +0100)]
do not use taint mode (revert previous commit)

Too many side effects ...

7 years agoPMG/Utils: use trim from PVE::Tools
Dietmar Maurer [Wed, 15 Feb 2017 07:31:47 +0000 (08:31 +0100)]
PMG/Utils: use trim from PVE::Tools

7 years agocorrectly quote regex in dangerous files rules
Dietmar Maurer [Wed, 15 Feb 2017 07:29:54 +0000 (08:29 +0100)]
correctly quote regex in dangerous files rules

7 years agoPMG/Utils.pm: use File::Basename
Dietmar Maurer [Wed, 15 Feb 2017 07:18:05 +0000 (08:18 +0100)]
PMG/Utils.pm: use File::Basename

7 years agoMailQueue: use new helper from PMG::Utils
Dietmar Maurer [Wed, 15 Feb 2017 07:15:22 +0000 (08:15 +0100)]
MailQueue: use new helper from PMG::Utils

7 years agonew helper add_ct_marks
Dietmar Maurer [Wed, 15 Feb 2017 07:14:21 +0000 (08:14 +0100)]
new helper add_ct_marks

7 years agouse $spooldir from MailQueue class
Dietmar Maurer [Wed, 15 Feb 2017 07:09:57 +0000 (08:09 +0100)]
use $spooldir from MailQueue class

7 years agonew helper create_sppoldirs, export $spooldir
Dietmar Maurer [Wed, 15 Feb 2017 07:09:00 +0000 (08:09 +0100)]
new helper create_sppoldirs, export $spooldir

7 years agoPMG/SMTP.pm: correctly log error messages
Dietmar Maurer [Wed, 15 Feb 2017 06:49:56 +0000 (07:49 +0100)]
PMG/SMTP.pm: correctly log error messages

7 years agocleanup amd use PMG/RuleDB/ArchiveFilter.pm
Dietmar Maurer [Wed, 15 Feb 2017 06:15:09 +0000 (07:15 +0100)]
cleanup amd use PMG/RuleDB/ArchiveFilter.pm

7 years agoimport PMG/RuleDB/ArchiveFilter.pm
Dietmar Maurer [Wed, 15 Feb 2017 06:05:19 +0000 (07:05 +0100)]
import PMG/RuleDB/ArchiveFilter.pm

7 years agopmg-smtp-filter: use perl taint mode
Dietmar Maurer [Wed, 15 Feb 2017 05:47:37 +0000 (06:47 +0100)]
pmg-smtp-filter: use perl taint mode

7 years agoinitialize database in postinst script
Dietmar Maurer [Wed, 15 Feb 2017 05:44:46 +0000 (06:44 +0100)]
initialize database in postinst script

7 years agopmgdb: implement statistic database update
Dietmar Maurer [Wed, 15 Feb 2017 05:37:04 +0000 (06:37 +0100)]
pmgdb: implement statistic database update