#1388 find_entry_by_attr() should fail if multiple entries are found
Closed: Fixed None Opened 12 years ago by rcritten.

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.


Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 2.1 - 2011/07

7 years ago

Login to comment on this ticket.

Metadata