]> git.proxmox.com Git - pmg-api.git/log
pmg-api.git
7 years agoset minLength for username
Dietmar Maurer [Sun, 26 Mar 2017 10:33:26 +0000 (12:33 +0200)]
set minLength for username

7 years agoPMG/UserConfig.pm: improve parse, implement verification
Dietmar Maurer [Sun, 26 Mar 2017 09:20:59 +0000 (11:20 +0200)]
PMG/UserConfig.pm: improve parse, implement verification

7 years agoadd user config, rework access control
Dietmar Maurer [Sat, 25 Mar 2017 16:05:07 +0000 (17:05 +0100)]
add user config, rework access control

7 years agoPMG/API2/Services.pm: return Result for oneshot services in dead state
Dietmar Maurer [Sat, 25 Mar 2017 10:51:03 +0000 (11:51 +0100)]
PMG/API2/Services.pm: return Result for oneshot services in dead state

7 years agoPMG/API2/Services.pm: add pmg-hurly and pmg-daily
Dietmar Maurer [Sat, 25 Mar 2017 10:23:34 +0000 (11:23 +0100)]
PMG/API2/Services.pm: add pmg-hurly and pmg-daily

7 years agoadd pmg-daily timer
Dietmar Maurer [Sat, 25 Mar 2017 10:21:07 +0000 (11:21 +0100)]
add pmg-daily timer

7 years agoadd user statistic lifetime setting
Dietmar Maurer [Sat, 25 Mar 2017 09:59:54 +0000 (10:59 +0100)]
add user statistic lifetime setting

7 years agoPMG/API2/Services.pm: remove cron from default service list
Dietmar Maurer [Sat, 25 Mar 2017 09:46:51 +0000 (10:46 +0100)]
PMG/API2/Services.pm: remove cron from default service list

We try to use systemd timers instead.

7 years agorenamed: pmg-cron-hourly to pmg-hourly
Dietmar Maurer [Sat, 25 Mar 2017 09:22:53 +0000 (10:22 +0100)]
renamed: pmg-cron-hourly to pmg-hourly

7 years agouse a systemd .timer unit instead of cron
Dietmar Maurer [Sat, 25 Mar 2017 09:13:56 +0000 (10:13 +0100)]
use a systemd .timer unit instead of cron

and fix Makefile function (avoid single quotes)

7 years agoMakefile: cleanup, install pmg-cron-hourly as extra script
Dietmar Maurer [Sat, 25 Mar 2017 07:33:15 +0000 (08:33 +0100)]
Makefile: cleanup, install pmg-cron-hourly as extra script

7 years agoPMG/API2/LDAP.pm: code cleanup
Dietmar Maurer [Sat, 25 Mar 2017 06:58:09 +0000 (07:58 +0100)]
PMG/API2/LDAP.pm: code cleanup

7 years agoPMG/LDAPConfig.pm: cleanup, add new() and write() methods
Dietmar Maurer [Sat, 25 Mar 2017 06:52:13 +0000 (07:52 +0100)]
PMG/LDAPConfig.pm: cleanup, add new() and write() methods

7 years agoPMG/API2/Nodes.pm: add 'rrddata' to directory index
Dietmar Maurer [Fri, 24 Mar 2017 17:33:08 +0000 (18:33 +0100)]
PMG/API2/Nodes.pm: add 'rrddata' to directory index

7 years agoPMG/API2/Nodes.pm: add rrddata API
Dietmar Maurer [Fri, 24 Mar 2017 16:02:47 +0000 (17:02 +0100)]
PMG/API2/Nodes.pm: add rrddata API

7 years agogenerate simple node stats using RRD
Dietmar Maurer [Fri, 24 Mar 2017 15:43:07 +0000 (16:43 +0100)]
generate simple node stats using RRD

7 years agobump version to 5.0.2, restart services after update
Dietmar Maurer [Fri, 24 Mar 2017 10:22:31 +0000 (11:22 +0100)]
bump version to 5.0.2, restart services after update

7 years agotests/test_greylist.pl: restart pmgpolicy after tests
Dietmar Maurer [Fri, 24 Mar 2017 10:21:16 +0000 (11:21 +0100)]
tests/test_greylist.pl: restart pmgpolicy after tests

7 years agodebian/postinst: cleanup, avoid update-mime-database in proxmox_install_mode
Dietmar Maurer [Fri, 24 Mar 2017 09:06:31 +0000 (10:06 +0100)]
debian/postinst: cleanup, avoid update-mime-database in proxmox_install_mode

7 years agoinstall hourly cron script
Dietmar Maurer [Fri, 24 Mar 2017 08:57:26 +0000 (09:57 +0100)]
install hourly cron script

7 years agoPMG/API2/Services.pm: add clamav services
Dietmar Maurer [Fri, 24 Mar 2017 08:29:13 +0000 (09:29 +0100)]
PMG/API2/Services.pm: add clamav services

7 years agoPMG/API2/Services.pm: list pmgpolicy service
Dietmar Maurer [Fri, 24 Mar 2017 07:31:26 +0000 (08:31 +0100)]
PMG/API2/Services.pm: list pmgpolicy service

7 years agopmgconfig ldapsync: improver error logging
Dietmar Maurer [Fri, 24 Mar 2017 06:00:28 +0000 (07:00 +0100)]
pmgconfig ldapsync: improver error logging

7 years agoNEWS: add hint about new LDAP config
Dietmar Maurer [Fri, 24 Mar 2017 05:19:02 +0000 (06:19 +0100)]
NEWS: add hint about new LDAP config

7 years agoLDAP: further cleanups
Dietmar Maurer [Thu, 23 Mar 2017 15:26:35 +0000 (16:26 +0100)]
LDAP: further cleanups

7 years agoLDAP: better object descriptions
Dietmar Maurer [Thu, 23 Mar 2017 15:20:05 +0000 (16:20 +0100)]
LDAP: better object descriptions

7 years agoadd protected flags for LDAP API
Dietmar Maurer [Thu, 23 Mar 2017 11:56:26 +0000 (12:56 +0100)]
add protected flags for LDAP API

because /etc/pmg/ldap.conf is only readable for root.

7 years agoPMG/LDAPCache.pm: do not save LDAP users without valid account name
Dietmar Maurer [Thu, 23 Mar 2017 11:55:25 +0000 (12:55 +0100)]
PMG/LDAPCache.pm: do not save LDAP users without valid account name

7 years agoPMG/RuleDB/LDAPUser.pm: implement API
Dietmar Maurer [Thu, 23 Mar 2017 10:50:08 +0000 (11:50 +0100)]
PMG/RuleDB/LDAPUser.pm: implement API

7 years agoPMG/RuleDB/LDAP.pm: verify parameters
Dietmar Maurer [Thu, 23 Mar 2017 10:35:50 +0000 (11:35 +0100)]
PMG/RuleDB/LDAP.pm: verify parameters

7 years agoPMG/RuleDB/LDAP.pm: implement API
Dietmar Maurer [Thu, 23 Mar 2017 09:34:05 +0000 (10:34 +0100)]
PMG/RuleDB/LDAP.pm: implement API

7 years agoPMG/RuleDB/LDAP.pm: imported from private repository
Dietmar Maurer [Wed, 22 Mar 2017 10:22:06 +0000 (11:22 +0100)]
PMG/RuleDB/LDAP.pm: imported from private repository

7 years agoPMG/RuleDB/LDAPUser.pm: imported from private repository
Dietmar Maurer [Wed, 22 Mar 2017 09:28:12 +0000 (10:28 +0100)]
PMG/RuleDB/LDAPUser.pm: imported from private repository

7 years agoPMG/API2/LDAP.pm: improve ldap interface
Dietmar Maurer [Wed, 22 Mar 2017 09:01:58 +0000 (10:01 +0100)]
PMG/API2/LDAP.pm: improve ldap interface

7 years agoPMG/LDAPCache.pm: cleanup LDAP options, set timeout to 10 seconds
Dietmar Maurer [Wed, 22 Mar 2017 06:10:19 +0000 (07:10 +0100)]
PMG/LDAPCache.pm: cleanup LDAP options, set timeout to 10 seconds

7 years agoPMG/API2/LDAP.pm: add hierarchy level
Dietmar Maurer [Wed, 22 Mar 2017 05:48:52 +0000 (06:48 +0100)]
PMG/API2/LDAP.pm: add hierarchy level

7 years agoLDAP*: replace section with profile
Dietmar Maurer [Wed, 22 Mar 2017 05:36:46 +0000 (06:36 +0100)]
LDAP*: replace section with profile

7 years agoPMG/API2/LDAP.pm: implement sync API
Dietmar Maurer [Tue, 21 Mar 2017 06:26:22 +0000 (07:26 +0100)]
PMG/API2/LDAP.pm: implement sync API

To trigger sync on individual lpdap profiles

7 years agoLDAP API: mention all return values in schema
Dietmar Maurer [Tue, 21 Mar 2017 05:49:16 +0000 (06:49 +0100)]
LDAP API: mention all return values in schema

7 years agoLDAPCache.pm::sync_database - code cleanup
Dietmar Maurer [Tue, 21 Mar 2017 05:26:17 +0000 (06:26 +0100)]
LDAPCache.pm::sync_database - code cleanup

7 years agoLDAPCache::querygroups - add support for univentionGroup
Dietmar Maurer [Mon, 20 Mar 2017 16:56:06 +0000 (17:56 +0100)]
LDAPCache::querygroups - add support for univentionGroup

7 years agoPMG/API2/LDAP.pm: do not include errors and basedn
Dietmar Maurer [Mon, 20 Mar 2017 10:50:45 +0000 (11:50 +0100)]
PMG/API2/LDAP.pm: do not include errors and basedn

Make no sense because we unly read from database.

7 years agoPMG/API2/LDAP.pm: include database statistics
Dietmar Maurer [Mon, 20 Mar 2017 10:44:59 +0000 (11:44 +0100)]
PMG/API2/LDAP.pm: include database statistics

7 years agoPMG/API2/LDAP.pm: sync whole database after updates
Dietmar Maurer [Mon, 20 Mar 2017 10:32:50 +0000 (11:32 +0100)]
PMG/API2/LDAP.pm: sync whole database after updates

7 years agoPMG/API2/LDAP.pm: delete local data when removing a profile
Dietmar Maurer [Mon, 20 Mar 2017 07:47:08 +0000 (08:47 +0100)]
PMG/API2/LDAP.pm: delete local data when removing a profile

7 years agotest LDAP connection before adding entries
Dietmar Maurer [Mon, 20 Mar 2017 07:42:07 +0000 (08:42 +0100)]
test LDAP connection before adding entries

7 years agoinclude disable flag in /config/ldap API
Dietmar Maurer [Sun, 19 Mar 2017 09:22:03 +0000 (10:22 +0100)]
include disable flag in /config/ldap API

7 years agoLDAPConfig: expose new option 'disable'
Dietmar Maurer [Sun, 19 Mar 2017 09:16:24 +0000 (10:16 +0100)]
LDAPConfig: expose new option 'disable'

7 years agoLDAPConfig: introduce disable flag
Dietmar Maurer [Sun, 19 Mar 2017 08:52:58 +0000 (09:52 +0100)]
LDAPConfig: introduce disable flag

7 years agoPMG/LDAPConfig.pm: encode comment/bindpw inside reader/writer
Dietmar Maurer [Sat, 18 Mar 2017 17:08:16 +0000 (18:08 +0100)]
PMG/LDAPConfig.pm: encode comment/bindpw inside reader/writer

7 years agoPMG/API2/LDAP.pm: corerctly deal with empty config
Dietmar Maurer [Sat, 18 Mar 2017 10:57:11 +0000 (11:57 +0100)]
PMG/API2/LDAP.pm: corerctly deal with empty config

7 years agodepend on libxdgmime-perl
Dietmar Maurer [Fri, 10 Mar 2017 06:57:24 +0000 (07:57 +0100)]
depend on libxdgmime-perl

7 years agovncshell: run /bin/login instead of top
Dietmar Maurer [Fri, 10 Mar 2017 06:07:19 +0000 (07:07 +0100)]
vncshell: run /bin/login instead of top

7 years agofix novnc directory mapping
Dietmar Maurer [Fri, 10 Mar 2017 05:42:15 +0000 (06:42 +0100)]
fix novnc directory mapping

7 years agouse new novnc index.html.tpl
Dietmar Maurer [Thu, 9 Mar 2017 16:22:22 +0000 (17:22 +0100)]
use new novnc index.html.tpl

7 years agofix upload target
Dietmar Maurer [Thu, 9 Mar 2017 08:02:05 +0000 (09:02 +0100)]
fix upload target

7 years agouse lib '..' to run tests
Dietmar Maurer [Thu, 9 Mar 2017 07:51:10 +0000 (08:51 +0100)]
use lib '..' to run tests

7 years agodo no try to delete database in prerm script (daemons still run by that time)
Dietmar Maurer [Thu, 9 Mar 2017 07:48:08 +0000 (08:48 +0100)]
do no try to delete database in prerm script (daemons still run by that time)

7 years agorename package to proxmox-mailgateway
Dietmar Maurer [Thu, 9 Mar 2017 07:39:59 +0000 (08:39 +0100)]
rename package to proxmox-mailgateway

7 years agoPMG/API2/Action.pm: return object group id
Dietmar Maurer [Tue, 7 Mar 2017 11:31:49 +0000 (12:31 +0100)]
PMG/API2/Action.pm: return object group id

7 years agoPMG/API2/Rules.pm: implement delete API
Dietmar Maurer [Tue, 7 Mar 2017 11:26:59 +0000 (12:26 +0100)]
PMG/API2/Rules.pm: implement delete API

7 years agoPMG/RuleDB.pm:add_rule_group - pass value as string
Dietmar Maurer [Tue, 7 Mar 2017 11:26:04 +0000 (12:26 +0100)]
PMG/RuleDB.pm:add_rule_group - pass value as string

7 years agoPMG/API2/RuleDB.pm: implement create_rule API
Dietmar Maurer [Tue, 7 Mar 2017 05:47:54 +0000 (06:47 +0100)]
PMG/API2/RuleDB.pm: implement create_rule API

7 years agoPMG/API2/Rules.pm: fix proxyto attribute
Dietmar Maurer [Tue, 7 Mar 2017 05:47:29 +0000 (06:47 +0100)]
PMG/API2/Rules.pm: fix proxyto attribute

7 years agoPMG/API2/Rules.pm: implement update_config API
Dietmar Maurer [Tue, 7 Mar 2017 05:31:50 +0000 (06:31 +0100)]
PMG/API2/Rules.pm: implement update_config API

7 years agoPMG/API2/Rules.pm: allow to read individual rule groups
Dietmar Maurer [Mon, 6 Mar 2017 16:39:56 +0000 (17:39 +0100)]
PMG/API2/Rules.pm: allow to read individual rule groups

7 years agoPMG/API2/Rules.pm: implement api to get single rule config
Dietmar Maurer [Mon, 6 Mar 2017 16:14:56 +0000 (17:14 +0100)]
PMG/API2/Rules.pm: implement api to get single rule config

7 years agoPMG/API2/Rules.pm: start API to edit rules
Dietmar Maurer [Mon, 6 Mar 2017 12:37:29 +0000 (13:37 +0100)]
PMG/API2/Rules.pm: start API to edit rules

7 years agobump version to 5.0-1
Dietmar Maurer [Mon, 6 Mar 2017 10:04:19 +0000 (11:04 +0100)]
bump version to 5.0-1

7 years agoNEWS: add note abour new clamav signature
Dietmar Maurer [Mon, 6 Mar 2017 07:33:29 +0000 (08:33 +0100)]
NEWS: add note abour new clamav signature

7 years agoPMG/Config.pm: new flag to include Google Safe Browsing database
Dietmar Maurer [Mon, 6 Mar 2017 07:27:55 +0000 (08:27 +0100)]
PMG/Config.pm: new flag to include Google Safe Browsing database

7 years agoPMG/API2/ClamAV.pm: do not generate extra log file for clamav updates
Dietmar Maurer [Mon, 6 Mar 2017 06:23:27 +0000 (07:23 +0100)]
PMG/API2/ClamAV.pm: do not generate extra log file for clamav updates

We log to syslog.

7 years agoPMG/API2/ClamAV.pm: rename dbstat to database
Dietmar Maurer [Mon, 6 Mar 2017 06:16:25 +0000 (07:16 +0100)]
PMG/API2/ClamAV.pm: rename dbstat to database

7 years agofreshclam.conf.in: remove option AllowSupplementaryGroups
Dietmar Maurer [Mon, 6 Mar 2017 06:08:46 +0000 (07:08 +0100)]
freshclam.conf.in: remove option AllowSupplementaryGroups

7 years agoPMG/API2/ClamAV.pm: add api to update database
Dietmar Maurer [Mon, 6 Mar 2017 05:38:46 +0000 (06:38 +0100)]
PMG/API2/ClamAV.pm: add api to update database

7 years agoclamav_dbstat: add timezone to timestamp
Dietmar Maurer [Sat, 4 Mar 2017 16:15:53 +0000 (17:15 +0100)]
clamav_dbstat: add timezone to timestamp

7 years agoclamav_dbstat: make sure we only count sanesecurity files
Dietmar Maurer [Sat, 4 Mar 2017 12:21:55 +0000 (13:21 +0100)]
clamav_dbstat: make sure we only count sanesecurity files

7 years agoadd ClamAV API, depend on clamav-unofficial-sigs
Dietmar Maurer [Sat, 4 Mar 2017 12:05:13 +0000 (13:05 +0100)]
add ClamAV API, depend on clamav-unofficial-sigs

7 years agoPMG/API2/RuleDB.pm: add rule direction
Dietmar Maurer [Fri, 3 Mar 2017 14:55:48 +0000 (15:55 +0100)]
PMG/API2/RuleDB.pm: add rule direction

7 years agoPMG/API2/Action.pm: cleanup error message
Dietmar Maurer [Fri, 3 Mar 2017 10:17:09 +0000 (11:17 +0100)]
PMG/API2/Action.pm: cleanup error message

7 years agoinit_testdb.pl: use lib ..
Dietmar Maurer [Fri, 3 Mar 2017 10:14:36 +0000 (11:14 +0100)]
init_testdb.pl: use lib ..

7 years agoPMG/API2/Action.pm: forbid to delete standard actions
Dietmar Maurer [Fri, 3 Mar 2017 10:13:54 +0000 (11:13 +0100)]
PMG/API2/Action.pm: forbid to delete standard actions

7 years agocreate_group_with_obj: fix wrong my declaration
Dietmar Maurer [Fri, 3 Mar 2017 10:12:29 +0000 (11:12 +0100)]
create_group_with_obj: fix wrong my declaration

7 years agorename new_action() to create_group_with_obj()
Dietmar Maurer [Fri, 3 Mar 2017 09:13:50 +0000 (10:13 +0100)]
rename new_action() to create_group_with_obj()

And remove the old create_group_with_obj (not atomic).

7 years agoPMG/API2/Action.pm: actions have info and name attributes
Dietmar Maurer [Fri, 3 Mar 2017 09:06:02 +0000 (10:06 +0100)]
PMG/API2/Action.pm: actions have info and name attributes

7 years agorework action API
Dietmar Maurer [Fri, 3 Mar 2017 08:01:38 +0000 (09:01 +0100)]
rework action API

Actions are special object groups, containing a single object.

7 years agonew helpers new_action() and load_object_full()
Dietmar Maurer [Fri, 3 Mar 2017 08:00:52 +0000 (09:00 +0100)]
new helpers new_action() and load_object_full()

7 years agoPMG/API2/What.pm: implement api for what objects
Dietmar Maurer [Thu, 2 Mar 2017 19:09:53 +0000 (20:09 +0100)]
PMG/API2/What.pm: implement api for what objects

7 years agoPMG/API2/Action.pm: implement action API
Dietmar Maurer [Thu, 2 Mar 2017 18:59:21 +0000 (19:59 +0100)]
PMG/API2/Action.pm: implement action API

7 years agoTimeFrame.pm: use H:i format
Dietmar Maurer [Thu, 2 Mar 2017 15:53:46 +0000 (16:53 +0100)]
TimeFrame.pm: use H:i format

7 years agoTimeFrame: allow end time to be smaller than start time
Dietmar Maurer [Thu, 2 Mar 2017 14:26:16 +0000 (15:26 +0100)]
TimeFrame: allow end time to be smaller than start time

7 years agoPMG/API2/When.pm: implement API for 'when' objects
Dietmar Maurer [Thu, 2 Mar 2017 11:40:54 +0000 (12:40 +0100)]
PMG/API2/When.pm: implement API for 'when' objects

7 years agoTimeFrame.pm: implement api
Dietmar Maurer [Thu, 2 Mar 2017 11:34:21 +0000 (12:34 +0100)]
TimeFrame.pm: implement api

7 years agoremove dead code
Dietmar Maurer [Thu, 2 Mar 2017 11:25:16 +0000 (12:25 +0100)]
remove dead code

7 years agocleanup: move more helpers to ObjectGroupHelpers.pm
Dietmar Maurer [Thu, 2 Mar 2017 09:24:57 +0000 (10:24 +0100)]
cleanup: move more helpers to ObjectGroupHelpers.pm

7 years agocleanup: move helpers to ObjectGroupHelpers.pm
Dietmar Maurer [Thu, 2 Mar 2017 09:00:59 +0000 (10:00 +0100)]
cleanup: move helpers to ObjectGroupHelpers.pm

7 years agorename register_object_group_api() to register_group_list_api();
Dietmar Maurer [Thu, 2 Mar 2017 08:50:00 +0000 (09:50 +0100)]
rename register_object_group_api() to register_group_list_api();

7 years agoallow to set object group properties
Dietmar Maurer [Wed, 1 Mar 2017 10:10:57 +0000 (11:10 +0100)]
allow to set object group properties

7 years agoadd mailfrom and hostname option
Dietmar Maurer [Wed, 1 Mar 2017 07:33:04 +0000 (08:33 +0100)]
add mailfrom and hostname option

7 years agoPMG/Config.pm: add spamqaur/virusquar sections
Dietmar Maurer [Wed, 1 Mar 2017 06:08:27 +0000 (07:08 +0100)]
PMG/Config.pm: add spamqaur/virusquar sections