Created 05-25-2020 03:21 AM
Hi, is there any way to prevent this and use just username as info?
Thanks (i can post my configs if needs)
//Svetislav
Created 05-25-2020 08:50 PM
You can edit the login-identity-providers.xml present under /etc/nifi/conf and update the below property:
From:
<property name="Identity Strategy">USE_DN</property>
To:
<property name="Identity Strategy">USE_USERNAME</property>
If its an Ambari managed nifi cluster the go to Ambari --> Nifi --> Configs --> Advanced nifi-login-identity-providers-env and update the above property then restart the nifi service and login with user name instead of complete CN.
Created 05-26-2020 01:26 AM
Hi,
thanks for the response.
If i change Identity Strategy from USE_DN to USE_USERNAME i'm getting the following error:
Created 05-26-2020 01:37 AM
It seems that the user entry is missing in users.xml file (default location /var/lib/nifi/conf). Once these files get created then it will not be re-generated or modified if you later make any changes in any of the configuration xml files. Hence try to rename these files users.xml and authorizations.xml and restart the nifi services so that nifi can re-create these two files with correct user details and policies.
Created 05-26-2020 02:31 AM
Hi, thanks, yes i did that, but in adition, i changed authorizers.xml so that "Initial Admin Identity" is just a username. Now it looks like this:
Although "USE_DN" is still in the "Identity Strategy".
Any way to get full name instead og username?