WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
87 stars 37 forks source link

[ISSUE] fmDNS Version 6.2.0 cannot update DNS/Bind servers #641

Open am155 opened 6 days ago

am155 commented 6 days ago

fmDNS 6.2.0 facileManager 4.7.0.

[X] I have read and understood the contributors guide. [X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present. [X] I have checked that the issue I'm posting isn't already reported. [X] I have checked that the issue I'm posting isn't already solved and no duplicates exist in closed issues and opened issues [X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.

(BUG | ISSUE) Actual Behavior: It was working fine in the previous version, but since the update to 6.2.0: DNS changes are done with the fmDNS server (as usual) and are pushed to the nameservers (bind9) Since the update to version 6.2.0 pushing changes result in:

ns2.xxxxxx.com Configuration Build Results [ns2.xxxxxx.com] rndc: unsupported algorithm: hmac-sha256

There where no changes for the Config - Key option: Algorithm has been set years ago to hmac-sha256 SSH connection to the server is working and the authlog on the DNS server is confirming the the following command is executed: /usr/bin/php /usr/local/facileManager/fmDNS/client.php buildconf The result of that call is the same as the error message above.

Thanks, Andreas

am155 commented 6 days ago

Some additional information: from package v4.6.2-complete.zip: I extracted fmDNS clients.php and functions.php on the BIND9 servers - everything is working now again as expected

WillyXJ commented 6 days ago

Is #636 applicable to your environment (i.e. do you have TSIG keys configured)?

am155 commented 6 days ago

Yes, but new errors - TSIG not used here.

Update of server works fine, but buildconfig NOT

Notice: Undefined property: fmdb::$last_result in /var/www/html/facileManager/fm-modules/fmDNS/classes/class_buildconf.php on line 179

Configuration build failed.

WillyXJ commented 6 days ago

Are you willing to test the latest beta to see if it resolves the problem?

am155 commented 3 days ago

Yes I will ...

am155 commented 2 days ago

Update to: facileManager v5.0.0-beta2 fmDNS v7.0.0-beta2

The problem didn't resolve: If I do try to change a Nameserver, the message is just a single line with: Parse error: syntax error, unexpected ':', expecting ')' in /var/www/html/facileManager/fm-modules/fmDNS/classes/class_dnssec.php on line 230

Building the configuration on the nameserver there is still the error:

Build Config Results: ns.xxxxx.com Configuration build failed.

ns2.xxxxx.com Configuration Build Results [ns2.xxxxx.com] rndc: unsupported algorithm: hmac-sha256 [ns2.xxxxxx.com] rndc: unsupported algorithm: hmac-sha256 $(document).ready(function() { $("form .required").closest("tr").children("th").children("label").addClass("required"); $("form[method=post]").parent().parent().find("input[type=submit].primary").addClass("follow-action"); });

Upgrade results: ns2.xxxxx.com Installed version: 6.1.0 Latest version: 7.0.0-beta1 Downloading http://www.facilemanager.com/download/facilemanager-core-5.0.0-beta2.tar.gz Downloading http://www.facilemanager.com/download/module/fmdns-7.0.0-beta1.tar.gz Unable to download file. Client upgrade failed.

The file: fmdns-7.0.0-beta1.tar.gz doesn't exists !!!

WillyXJ commented 2 days ago

I've fixed the download link so the client should be able to grab fmdns-7.0.0-beta1.tar.gz now. I'm still looking at the other errors you posted.