Files
freeipa/ipaserver/plugins
Florence Blanc-Renaud e9c4dcdb85 stageuser-find: fix search with non-posix user
ipa stageuser-find fails to return a staged user if it does not
contain the posixaccount objectclass.
The code is replacing the search filter (objectclass=posixaccount)
with (|(objectclass=posixaccount)(objectclass=inetorgperson)) so it
should work in theory.
The issue is that on python2 the filter has been hexlified before
reaching the stageuser plugin, hence filter.replace does not recognize
the pattern (objectclass=posixaccount).
The fix consists in creating the filter with a call to
ldap.make_filter_from_attr()
that will hexlify too, if needed.

Fixes: https://pagure.io/freeipa/issue/7983
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
2019-06-25 11:02:59 -04:00
..
2010-12-20 17:19:53 -05:00
2018-10-10 09:56:40 +02:00
2017-03-27 19:08:26 +02:00
2019-06-18 10:36:24 +10:00
2018-01-09 07:53:28 +01:00
2018-09-27 11:49:04 +02:00
2019-05-16 14:38:43 -04:00
2019-03-28 00:21:00 +01:00
2019-03-28 00:21:00 +01:00
2019-05-16 14:38:43 -04:00
2019-01-16 08:57:51 +01:00
2018-07-14 12:04:19 +02:00
2019-05-28 09:55:51 +03:00
2018-01-09 07:53:28 +01:00
2018-10-05 12:06:19 +02:00
2018-07-14 12:04:19 +02:00
2018-07-14 12:04:19 +02:00
2019-03-28 17:57:58 +01:00
2019-01-29 12:47:15 +01:00
2017-09-08 15:42:07 +02:00
2019-03-28 00:21:00 +01:00