On 29 Apr 2019, at 11:53, Anuj Borah <aborah(a)redhat.com>
The space did not make any difference . Look at bellow result .
(Pdb) Accounts(topo.standalone, DEFAULT_SUFFIX).filter(i)
^ Because you are using the wrong class.
Filter will wrap your call because you are filtering over the set of Accounts, not
“generic searching”. If you want to search a group OfUniqueNames, you need:
Have a look at _mapped_object.py in def filter and youll see it does:
def filter(self, search):
# This will yield and & filter for objectClass with as many terms as needed.
search_filter = _gen_and([self._get_objectclass_filter(),search])
IE, your search of “uniqueMember=…” is then inserted such that:
Because you are using Accounts, this is doing:
Which of course won’t find anything in a group, because Accounts are not Groups.
So in fact, lib389 is doing exactly the right thing here, by saying “no, your search is
not safe or sane, so you don’t get any results”. Lib389 is designed to prevent you making
mistakes, and so will error or do nothing in the cases where something is wrong, rather
than allow a corruption or odd behaviour to occur.
Senior Software Engineer, 389 Directory Server