jeltsch's blog

Reset the admin (user1) password in Drupal 9

Execute this from within the drupal directory

php core/scripts/password-hash.sh 'newPassword'
password: 'newPassword' hash: $S$EHKLUvRyA/5gpTqWsICIePmwOaQ4oPwMEAfRySELtZ4JdZ8uiYCo

Execute from within MySQL:

UPDATE users_field_data SET pass='$S$EHKLUvRyA/5gpTqWsICIePmwOaQ4oPwMEAfRySELtZ4JdZ8uiYCo' WHERE uid = 1;
DELETE FROM cache_entity WHERE cid = 'values:user:1';

Dynamic DNS with DomainDiscount24 and pfsense

Many companies offer free dynamic DNS. But since I use DomainDiscount24, I also use their dynamic DNS service. To update the IP address of vpn.jeltsch.org, I need to send an https request to a specific URL, including a password and the hostname for which I want the update:
https://dynamicdns.key-systems.net/update.php?hostname=vpn.jeltsch.org&password=12345678&ip=auto

Pages