-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding host should allow use of 'force' checkbox without IP address added #624
Comments
Adding host should allow use of 'force' checkbox without IP address added, as the idea is to allow adding host objects that don't have DNS entries associated with them. Fixes: freeipa#624 Signed-off-by: Carla Martinez <carlmart@redhat.com>
@abbra - I created a PR to fix that. Based on what's mentioned in the issue's description, is it possible to create a new host without the This is the current request payload that is sent to API when a new host is create without the |
The logic in host plugin on the server side:
So I think there is a bug in the modern web UI code though if it is sending empty values for
We would need to validate |
Adding host should allow use of 'force' checkbox without IP address added, as the idea is to allow adding host objects that don't have DNS entries associated with them. Fixes: freeipa#624 Signed-off-by: Carla Martinez <carlmart@redhat.com>
@abbra - I corrected the code based on your last comment. |
The code in the web ui is wrong in assuming that we cannot force creation of the entry without IP address.
The whole idea behind
ipa host-add --force
is to allow adding host objects that don't have DNS entries associated with them. It means there should be no prevention of adding a host entry if it has no IP address.In IPA API these options are separate and have separate meaning:
We have plenty of tests in IPA upstream tests that only add a host object and never add anything in the DNS. This is typically used for Kerberos services or certificate management: a host is added to manage Kerberos services or to allow host principal to issue certificates for managed hosts while not having the host itself in DNS.
The text was updated successfully, but these errors were encountered: