Michael Kaufmann
0e703a4199
adjust validate-test for 'sql username too long' for mariadb
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-11-24 10:30:01 +01:00
Michael Kaufmann
cfda35a36b
update sql-users with their corresponding password-hash-algorithm; remove a few notices for empty values in str_replace and others
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2022-07-17 12:03:37 +02:00
Oskar Eisemuth
4a912e3902
Feature/crontaskid ( #1005 )
...
* Add \Froxlor\Cron\TaskId for fixed task id naming
* Replace Cronjob::inserttask numbers with \Froxlor\Cron\TaskId constants
* Use TaskId in Froxlor\Cron\System\TasksCron
* Use TaskId in Froxlor\System\Cronjob,
simplify getOutstandingTasks.
Rename lng['tasks'] cronjob task description.
WARNING: DELETE_DOMAIN_PDNS, DELETE_DOMAIN_SSL now use %domain%
* Remove Froxlor\System\Cronjob type 3 check
2022-01-21 10:03:45 +01:00
Michael Kaufmann
5f41b37770
test dns entry string without any whitespaces/tabs/etc.
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 16:08:46 +01:00
Michael Kaufmann
61265778a5
fix unit-test
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 16:01:45 +01:00
Michael Kaufmann
8f0f890145
fix too strict comparison for isemaildomain check in Dns-Zone generation; fixes #1003
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-12-27 15:38:59 +01:00
Michael Kaufmann
149c0935fa
fix Domains.update() with correct path and change_serversettings=0; refs #1001
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-27 22:06:29 +01:00
Michael Kaufmann
cb0b537f6c
allow settings/updating documentroot (only relative to customer homedirectory) when change_serversettings permission is not granted; fixes #1000
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-27 18:04:36 +01:00
Michael Kaufmann
c4a2db03be
enable bind for testing-scenarios explicitly
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-11-03 14:16:21 +01:00
Michael Kaufmann
9870db2560
add possibility to assign new/edited php-config to all customer accounts; fixes #980
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-14 17:09:29 +02:00
Michael Kaufmann
5e281cf486
fix allowed-phpconfigs check in SubDomains.add() and SubDomains.update()
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-10-11 19:26:13 +02:00
Michael Kaufmann
0a1a3e023f
check dns for lets encrypt when adding/editing domains and via cron; fixes #971
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-08-04 13:44:13 +02:00
Michael Kaufmann
c7b7c67ff4
normalize ipv6 addresses to avoid possible comparison problems; fixes #965
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-07-26 17:53:44 +02:00
Michael Kaufmann
4354598c64
fix unittests
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-07-21 10:21:58 +02:00
Michael Kaufmann
05d4bdc499
restore behaviour for unittests as 'create stdsubdomain' default was yes in the settings but no for direct API usage
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-07-21 10:10:18 +02:00
Kai
ce9d8dad7f
Feature-request #672 - database name prefixes + custom name ( #956 )
...
* Fix makeoption function call
* Update formfield.mysql_add.php
Added database name
* Update formfield.mysql_add.php
* Update formfield.mysql_add.php
* Update Mysqls.php
* Update DbManager.php
* Update formfield.mysql_add.php
* Update german.lng.php
* Update formfield.mysql_add.php
* Update Mysqls.php
* Added field database_name (Feature #672 )
* Added Testfunction for customer choosed database name
* Fixed test for customer choosed database name
Added docs for param $name
* Fixed mysql api command add
Removed doubled code
* Set settings for customer choosed db name
* Fixed wrong excepted for database name
* Renamed parameter database_name to custom_suffix
* Changed testCustomerMysqlsList
Added testCustomerMysqlsDBNameDelete
2021-07-19 19:10:12 +02:00
Michael Kaufmann
91d4432108
check rr against possible existing CNAME entries, fixes #927
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-03-15 17:33:30 +01:00
Michael Kaufmann
53e8ccbccb
added 'deactivated' parameter to EmailAccounts.update() so admins can disable individual email-accounts, will be overridden if customer is deactivatd and re-enabled; fixes #921
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-03-03 10:59:16 +01:00
Michael Kaufmann
6d8fc215f1
add description field to panel_domains and mail_virtual table, API parameter 'description' for Domains.add()/Domains.update() and Email.add()/Emails.update(); fixes #910
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-03-03 10:25:42 +01:00
Michael Kaufmann
f94c303cb3
add API parameter 'show_usages' for Customers.listing() and Customers.get() to return number of domains, and diskspaced used split into webspace_used, mailspace_used and dbspace_used; fixes #912
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2021-03-03 09:50:30 +01:00
Michael Kaufmann
455c655580
corrected validation of idn-tld's, fixes #899
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-11-14 11:59:46 +01:00
Michael Kaufmann
b1b68364be
do not allow setting www as CNAME record if domain has automatic www-Alias enabled, fixes #895
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-31 16:16:05 +01:00
Michael Kaufmann
16eca628dd
add Unittest for traffic-filtering by customer-name, refs #894
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-31 15:53:07 +01:00
Michael Kaufmann
c79cba26f3
avoid deletion of (super)admin with id 1 due to fallbacks in the code using it; fixes #886
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-31 10:02:11 +01:00
Michael Kaufmann
36eb3cc1aa
[domainbulk] remove reqiurement for customer-select in webinterface as it is an API-parameter
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-31 09:45:50 +01:00
Michael Kaufmann
816874872d
make given documentroot of domain relative to customerroot of no absolute path if given; fixes #892
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-14 16:58:19 +02:00
Michael Kaufmann
3dcbbb9e7b
do not set description to empty value if not passed as parameter as it is optionally; fixes #890
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-14 14:25:23 +02:00
Michael Kaufmann
a5dc7b93a2
unify customerid/loginname api-parameter-descriptions; fixes #883
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-10-05 19:59:02 +02:00
Michael Kaufmann
f169129e27
remove obsolete/unused table
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-09-07 21:53:18 +02:00
Michael Kaufmann
daa223ed42
return full domain object on Domains.update() call, fixes #861
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-06-17 09:29:02 +02:00
Michael Kaufmann
65b2e4efa7
do not check for mariadb.sys user on mariadb-10.4 when testing with travis
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-05-23 21:17:43 +02:00
Michael Kaufmann
bddf9b496c
enable internal api-call to bypass customer_hide_options check in certain situations where it is needed, fixes #803
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-05-15 09:35:20 +02:00
Michael Kaufmann
f11ceacf89
store ace-string of domain besides idn-converted string to have correct sorting in the frontend; fixes #809
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-02-29 09:50:29 +01:00
Michael Kaufmann
734c02e33f
update php-fpm defaults; update paths for current stable php-7.3; read froxlor default php.ini from file rather then using phpconfig with id=1; fixes #796
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-01-31 13:17:49 +01:00
Michael Kaufmann
6c43f1bc56
fix Domains.update() if called as admin/reseller without change_serversettings privileges, thx to rseffner
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-01-22 09:14:07 +01:00
Michael Kaufmann
f21d4f8770
when not using awstats, disable awstats-related settings; add minor tweaks to unit-tests
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-01-10 16:44:13 +01:00
Michael Kaufmann
a5287726a4
fix issue in PhpHelper::trimArray() returning an empty array, fixes #751
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2020-01-03 23:32:21 +01:00
Michael Kaufmann
37c434d4fc
testsystem does not listen on socket for mysql
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-12-31 09:29:09 +01:00
Michael Kaufmann
1eb14d7564
update composer-dependencies; add connection-test to Mysqls.update() when changing passwords; validate ssl-certificates to avoid private/public key mismatch and a failed webserver start, fixes #778
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-12-31 09:23:28 +01:00
Michael Kaufmann
63d915804a
lowercase domainnames when adding new (sub)domain to avoid issues with certificates on filesystem
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-12-11 20:12:51 +01:00
Michael Kaufmann
2d43a8714d
let's try to fix the mysql-user-create/update issue, fingers crossed; refs #758
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-20 11:06:21 +01:00
Michael Kaufmann
c84732a0cd
fix issue when adding new database users with already-hashed passwords, refs #758
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-18 10:48:31 +01:00
Michael Kaufmann
605d2340d1
first unittest for mysql-users and their password, refs #758
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-17 13:42:35 +01:00
Michael Kaufmann
1a3cc52188
fix parameters defaults for Domains.update() and add new parameter 'remove_ssl_ipandport' to clear ssl ip/port instead of defaulting to the current set value; fixes #756
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-15 15:11:24 +01:00
Michael Kaufmann
3cc5352c01
implement EmailForwarders.listing(); fixes #754
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-15 07:20:16 +01:00
Michael Kaufmann
1b2c186c07
introduce search, limit, offset and orderby possibilities for (almost) all API listing() functions; added listingCount() function in preparation to replace the old UI\Paging class later on
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-02 10:58:52 +01:00
Michael Kaufmann
53b7420dc9
fix stripping of escape-sequences in api-endpoint; fixes #746
...
Signed-off-by: Michael Kaufmann <d00p@froxlor.org >
2019-11-01 07:39:28 +01:00
Pascal
62236da496
changed method name
2019-10-30 12:50:16 +01:00
Pascal
e1cc896b6c
add unit tests for Validate::is_ipv6
2019-10-30 12:39:56 +01:00
Michael Kaufmann
ef6254b307
Merge pull request #679 from pquerner/#564
...
Allow CIDR and Netmask in mysql_host_access; fixes #564
2019-10-30 10:40:26 +01:00