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-07-11 10:11:38 +02:00
2018-10-10 09:56:40 +02:00
2017-03-27 19:08:26 +02:00
2019-05-28 09:55:51 +03:00
2018-11-13 12:40:44 +01:00
2018-06-12 08:38:56 +02:00
2019-06-18 10:36:24 +10:00
2018-01-09 07:53:28 +01:00
2019-04-09 09:13:27 +02:00
2018-09-27 11:49:04 +02:00
2018-09-27 10:23:03 +02:00
2019-05-16 14:38:43 -04:00
2016-10-12 10:38:52 +02:00
2019-03-28 00:21:00 +01:00
2017-06-15 13:51:06 +02:00
2019-03-14 09:39:55 +01:00
2019-03-28 00:21:00 +01:00
2018-09-27 16:11:18 +02:00
2016-06-03 09:00:34 +02:00
2018-07-11 10:11:38 +02:00
2016-10-12 10:38:52 +02:00
2016-10-12 10:38:52 +02:00
2017-07-14 15:55:59 +02:00
2019-05-16 14:38:43 -04:00
2016-10-12 10:38:52 +02:00
2019-03-29 14:04:04 +01:00
2018-12-07 11:39:23 +01:00
2019-01-16 08:57:51 +01:00
2018-06-21 18:42:05 +02:00
2018-07-14 12:04:19 +02:00
2019-05-28 09:55:51 +03:00
2016-06-17 18:05:03 +02:00
2019-06-19 11:39:51 +02:00
2016-12-02 13:00:06 +01:00
2018-01-09 07:53:28 +01:00
2016-06-03 09:00:34 +02:00
2016-06-03 09:00:34 +02:00
2018-10-05 12:06:19 +02:00
2017-07-14 15:55:59 +02:00
2018-11-08 13:16:26 +01:00
2016-06-03 09:00:34 +02:00
2019-03-28 17:57:58 +01:00
2018-07-14 12:04:19 +02:00
2018-06-12 08:38:56 +02:00
2019-03-14 09:39:55 +01:00
2018-11-13 12:40:44 +01:00
2018-07-11 10:11:38 +02:00
2018-07-14 12:04:19 +02:00
2018-06-12 08:38:56 +02:00
2016-10-12 10:38:52 +02:00
2018-07-11 10:11:38 +02:00
2019-03-28 17:57:58 +01:00
2019-03-28 17:57:58 +01:00
2019-03-28 17:57:58 +01:00
2019-01-29 12:47:15 +01:00
2017-03-27 19:08:26 +02:00
2018-06-21 18:42:05 +02:00
2019-06-25 11:02:59 -04:00
2016-06-03 09:00:34 +02:00
2017-09-08 15:42:07 +02:00
2016-10-12 10:38:52 +02:00
2018-08-15 12:52:52 +02:00
2019-03-25 09:48:31 +01:00
2019-04-08 17:51:38 +02:00
2019-06-19 11:39:51 +02:00
2019-03-28 00:21:00 +01:00
2017-07-14 15:55:59 +02:00
2017-07-07 14:44:42 +02:00
2018-07-17 15:32:28 -04:00