#2729 host-add accepts --ip-address option without DNS installed
Closed: Fixed None Opened 11 years ago by mkosek.

host plugin accepts IP address passed to host-add command for an unresolvable host even when IPA is configured without DNS support and the IP address is obviously not used.

Current behavior:

# ipa host-add foo.example.com 
ipa: ERROR: Host does not have corresponding DNS A record

# ipa host-add foo.example.com --ip-address=10.0.0.1
----------------------------
Added host "foo.example.com"
----------------------------
  Host name: foo.example.com
  Principal name: host/foo.example.com@IDM.LAB.BOS.REDHAT.COM
  Password: False
  Keytab: False
  Managed by: foo.example.com

Previous behavior:

# ipa host-add foo.example.com
ipa: ERROR: Host does not have corresponding DNS A record

# ipa host-add foo.example.com --ip-address=10.0.0.1
ipa: ERROR: DNS zone example.com not found

I do not think wee should fix it until someone complains. Fixing it now would be a semantic change.

Moving my tickets back to free-to-take pool.

I checked this Bug with current IdM/FreeIPA (4.1) and the error was raised properly:

# ipa host-add foo.example.com 
ipa: ERROR: Host does not have corresponding DNS A/AAAA record

# ipa host-add foo.example.com --ip-address=10.0.0.1
ipa: ERROR: DNS zone example.com. not found

If you still reproduce the issue, please feel free to reopen this request.

Metadata Update from @mkosek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.1

7 years ago

Login to comment on this ticket.

Metadata