freeipa/ipaserver
Florence Blanc-Renaud efb3700389 Fix ipa migrate-ds when it finds a search reference
When ipa migrate-ds finds user entries and a search reference, it complains
that the LDAP search did not return any result and does not migrate the
entries or the groups.

The issue comes from LDAPClient._convert_result which returns an empty result
list when the input is a search reference. In turn LDAPClient.find_entries
assumes that the empty result list corresponds to a Search Result Done and
returns without any entry.

The fix examines first the objtype returned by self.conn.result3. If it is
a search result done, then the loop can be exited. Otherwise (referral or
entry), _convert_result is called and the result (if not empty) is appended
to the list of returned entries.

https://fedorahosted.org/freeipa/ticket/6358

Reviewed-By: Martin Basti <mbasti@redhat.com>
2016-11-17 01:01:05 +01:00
..
advise advise: Use name instead of __name__ to get plugin names 2016-09-08 17:28:24 +02:00
install Use common procedure to setup initial replication in both domain levels 2016-11-17 00:39:17 +01:00
plugins Fix ipa migrate-ds when it finds a search reference 2016-11-17 01:01:05 +01:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
dcerpc.py ipaldap: merge IPAdmin to LDAPClient 2016-11-07 11:34:03 +01:00
dns_data_management.py Fix compatibility with python-dns 1.15.0 2016-10-11 15:45:41 +02:00
Makefile.am Build: Makefiles for Python packages 2016-11-09 13:08:32 +01:00
rpcserver.py pylint: enable the import-error check 2016-10-24 14:11:08 +02:00
servroles.py Introduce "NTP server" role 2016-06-15 13:51:48 +02:00
session.py pylint: enable the import-error check 2016-10-24 14:11:08 +02:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Add install requirements to Python packages 2016-11-16 22:58:39 +01:00
topology.py Fix topologysuffix-verify failing connections 2016-06-24 13:32:02 +02:00