find_entry_by_attr() returns only the first entry returned by a search but it leads to inconsistent results.
Consider this example:
# ipa host-add foo.example.com --force # ipa host-add foo.lab.example.com --force # ipa host-del foo
The entry foo.example.com is removed but there are two hosts named foo. This is because find_entry_by_attr() returned the first one in the serverHostName server.
attachment freeipa-rcrit-818-findbyattr.patch
master: d9627ab
Metadata Update from @rcritten: - Issue assigned to rcritten - Issue set to the milestone: FreeIPA 2.1 - 2011/07
Login to comment on this ticket.