Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of forwarders addresses with custom port.
When setting a DNS forwarder, IPA allows the use of a custom port using the format '<ip> port <port>', and this configuration is validated with dnspython to ensure the forwarder is resolvable. Starting with dnspython 2.2.0 the Resolver.nameservers property, used to resolve the forwarders IP address, validates the IP address when the value is assigned to property, and as the forwarder format is not an IP address, it fails and a ValueError exception is raised. Modifying the way forwarders are handled when validating them prevents the exception to be raised, and test for the correct port. Fixes: https://pagure.io/freeipa/issue/9158 Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
- Loading branch information