David Goodwin
309b4a84aa
get legacy test case to pass
2021-09-29 18:32:46 +01:00
David Goodwin
0b9b7db917
Merge remote-tracking branch 'origin/master' into feature-improve-pacrypt
2021-09-29 18:04:49 +01:00
David Goodwin
0d08ac418a
see https://github.com/postfixadmin/postfixadmin/issues/547
2021-09-29 11:52:31 +01:00
Sethox
6bb8bc6fa0
Revision to my previous suggestion
...
This grants "if port is defined" in the right context.
2021-09-01 00:04:54 +02:00
Sethox
47b1eecdf6
Minor update: add port to mysql/mariadb
...
This change is needed be able to use $CONF['database_host'] (custom port) for mysql/mariadb
2021-08-31 10:32:41 +02:00
David Goodwin
36593fafe7
remove extra semi-colon - thanks to @PF4Public / #524
2021-08-04 17:25:45 +01:00
David Goodwin
25ac89f6a7
see https://github.com/postfixadmin/postfixadmin/issues/523 - improve randomness when creating the PFA_token field; reported by @michaellrowley via huntr.dev.
2021-08-04 17:00:55 +01:00
David Goodwin
1be8386e58
capitalise mechanisms
2021-07-11 21:53:06 +01:00
David Goodwin
8ca6f718b2
composer format
2021-07-11 21:21:00 +01:00
David Goodwin
d707ab8355
iniital inclusion of the postfixadmin/password-hashing library.
2021-07-07 21:42:17 +01:00
David Goodwin
659b242b59
merge fix
2021-05-15 21:28:19 +01:00
David Goodwin
8518d53906
merge postfixadmin_3.3 into master
2021-05-13 13:15:27 +01:00
David Goodwin
179dd4c6e2
try and improve hashing, remove duplicate code, try and cope with the algorithm/method in $pw_db being different from the configured one; add tests
2021-05-11 21:56:48 +01:00
David Goodwin
858c0a0ecd
add in some @deprecated notifices
2021-05-08 21:56:05 +01:00
David Goodwin
3853561157
use PACrypt::hash(...)
2021-05-08 21:50:39 +01:00
Sven Strickroth
51eed5e2b6
Cleanup
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2021-05-07 18:03:37 +02:00
Sven Strickroth
3cde7af742
UTF8 is no real UTF8 in MySQL, on needs to use utf8mb4
...
This allows to use emojis in vacation mails.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2021-05-07 17:55:18 +02:00
David Goodwin
2edabc3e03
phpcs insists on some brace changes
2021-04-13 21:19:16 +01:00
David Goodwin
fbdc6ba029
composer format
2021-04-05 21:20:40 +01:00
David Goodwin
962e80c40c
improve typehints on db_insert (requires php7)
2021-04-05 21:11:39 +01:00
David Goodwin
60ff94e3c1
see #469 - try and make sure we do update timestamp fields
...
They may not be present in our $values array, but update them anyway.
2021-04-05 21:11:39 +01:00
David Goodwin
1a93247018
improve phpdocs
2021-03-02 21:33:00 +00:00
David Goodwin
0fc3765528
re-format
2021-02-20 14:29:23 +00:00
David Goodwin
c755e82a36
Merge branch 'postfixadmin_3.3'
2021-02-18 12:12:27 +00:00
David Goodwin
c87d8a8319
split db_connect() up to separate out db_connection_string() (which returns a PDO DSN string)
2021-02-17 21:10:48 +00:00
David Goodwin
d9813d4cf8
see #446 - try and detect site url but allow for $CONF['site_url'] override to be used.
2021-02-07 20:35:58 +00:00
David Goodwin
aef69b53a9
log parameters when it fails
2021-02-07 19:40:45 +00:00
David Goodwin
dcf01eafc3
more english
2021-01-28 22:20:54 +00:00
David Goodwin
8ebb985fc7
split db_connect() up to separate out db_connection_string() (which returns a PDO DSN string)
2021-01-28 22:12:05 +00:00
David Goodwin
52933a6307
remove change to table_by_key() as the original bug has been found in Login
2021-01-26 21:06:15 +00:00
David Goodwin
bcf1f8c7e4
move min_password_length check into a conditional Config::has() check first
2021-01-26 20:47:45 +00:00
David Goodwin
da7607c9c5
see #429 - check for some CONF keys before trying to use them
2021-01-23 16:55:41 +00:00
David Goodwin
d81be5640d
try and make config reading a bit more robust - see https://github.com/postfixadmin/postfixadmin/issues/429
2021-01-22 18:04:39 +00:00
David Goodwin
6c3ff42036
make sure we do not double quote mysql table names somehow
2021-01-19 20:03:32 +00:00
David Goodwin
910490e83f
see https://github.com/postfixadmin/postfixadmin/issues/422 - not all variants of MySQL have RANDOM_BYTES()
2021-01-16 21:42:56 +00:00
David Goodwin
5151b860e7
add @todo, default MySQL ENCRYPT() to have a random salt, SHA512 format
2021-01-12 22:04:51 +00:00
David Goodwin
0096a41693
format
2021-01-12 11:00:56 +00:00
David Goodwin
7090b5af75
changes to pacrypt to support a prefix like {SHA265-CRYPT} on a hash - @see https://github.com/postfixadmin/postfixadmin/issues/344
2021-01-12 10:59:25 +00:00
Christian Boltz
b9946ca968
update $min_db_version to match latest upgrade.php
2021-01-07 22:16:22 +01:00
David Goodwin
750838d7f7
psalm fixes; make safepost()/safeget() return strings
2020-11-09 21:40:52 +00:00
David Goodwin
4712d83c98
see: https://github.com/postfixadmin/postfixadmin/issues/390 - support a callable which
...
allows for password validation against any external service.
2020-11-09 21:37:47 +00:00
David Goodwin
8abde0dc0b
move $version into $CONF / Config from functions.inc.php
2020-09-27 10:47:56 +01:00
David Goodwin
484acfbf59
Remove the random_compat lib.
2020-09-27 10:47:22 +01:00
David Goodwin
4d8b4558d7
might fix: https://github.com/postfixadmin/postfixadmin/issues/378
2020-08-13 16:59:40 +01:00
David Goodwin
b1ccb2b07b
merge in socket support for postgresql connections - see https://github.com/postfixadmin/postfixadmin/issues/370
2020-08-13 14:47:00 +01:00
David Goodwin
b0aa0141d7
reformat
2020-08-06 20:43:47 +01:00
David Goodwin
57a4787473
abort on any stderr output from doveadm ... see: https://github.com/postfixadmin/postfixadmin/issues/373#issuecomment-670007084
2020-08-06 19:42:34 +01:00
David Goodwin
502bfca2f5
try and improve error handling if doveadm is not present etc - see https://github.com/postfixadmin/postfixadmin/issues/373
2020-08-06 15:33:37 +01:00
David Goodwin
2bb2460bf3
add in error_log call just incase it helps someone
2020-06-02 12:54:26 +01:00
Phil Jaenke
d3a5db394c
Make pInvalidDomainDNS more forgiving
...
Make the pInvalidDomainDNS check more forgiving to accommodate newly created domains which also do not have an A record for the domain (which is generally not a best practice) or MX configured yet.
This adds a check for an `NS` record; if the NS exists, then the domain is valid and can be assumed to have just not been configured to receive email yet.
2020-05-15 16:06:59 -04:00