summaryrefslogtreecommitdiffstats
path: root/install/ui/host.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/host.js')
-rw-r--r--install/ui/host.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/install/ui/host.js b/install/ui/host.js
index 8c67f636..d07d63d9 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -353,6 +353,18 @@ IPA.host_adder_dialog = function(spec) {
spec = spec || {};
spec.retry = spec.retry !== undefined ? spec.retry : false;
+ if (!IPA.dns_enabled) {
+
+ //When server is installed without DNS support, a use of host_fqdn_widget
+ //is bad because there are no DNS zones. IP address field is useless as
+ //well. Special section and IP address field should be removed and normal
+ //fqdn textbox has to be added.
+ spec.sections.shift();
+ spec.sections[0].fields.shift();
+ spec.sections[0].fields.unshift('fqdn');
+ delete spec.height;
+ }
+
var that = IPA.entity_adder_dialog(spec);
that.create = function() {