Files
freeipa/ipaserver/plugins
Alexander Bokovoy b47d6a3654 use LDAP Whoami command when creating an OTP token
ipa user-find --whoami is used by ipa otptoken-add to populate
ipaTokenOwner and managedBy attributes. These attributes, in turn are
checked by the self-service ACI which allows to create OTP tokens
assigned to the creator.

With 389-ds-base 1.4.0.6-2.fc28 in Fedora 28 beta there is a bug in
searches with scope 'one' that result in ipa user-find --whoami
returning 0 results.

Because ipa user-find --whoami does not work, non-admin user cannot
create a token. This is a regression that can be fixed by using LDAP
Whoami command.

LDAP Whoami command returns a string 'dn: <DN of the bind>', so we have
to strip first four characters to get actual DN.

Fixes: https://pagure.io/freeipa/issue/7456
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
2018-03-22 11:33:17 +01:00
..
2010-12-20 17:19:53 -05:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2018-01-09 07:53:28 +01:00
2018-02-09 08:57:41 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-09-18 11:44:08 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-12-12 12:53:21 +01:00
2018-02-09 08:57:41 +01:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2018-01-09 07:53:28 +01:00
2017-03-27 19:08:26 +02:00
2017-03-27 19:08:26 +02:00
2018-01-31 16:03:19 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2017-09-08 15:42:07 +02:00
2018-01-09 07:53:28 +01:00
2018-01-09 07:53:28 +01:00
2016-08-17 16:55:49 +02:00