Created 03-12-2017 07:21 AM
I am getting : User:amb_ranger_admin credentials on Ambari UI are not in sync with Ranger
followed the link : https://community.hortonworks.com/questions/19948/this-alert-is-used-to-ensure-that-the-ranger-admin... , still no luck.
Ranger version : 0.6.0.2.5
HDP : 2.5.3.0
could able to login to Ranger Admin UI , using both amb_ranger_admin and admin , with their respective passwords.
From Ambari, i tired to change admin password to match with amb_ranger_admin's password . But could not modify. Also tired to modify amb_ranger_admin to match with admin's password. It also could not modify.
I bounced both Ranger and Ambari also. Still no lock.
Do we need to modify these password , from mysql?
or
After login to Ranger Admin UI , as both amb_ranger_admin and admin , users , can we update their password to same value?
Any Help is appreciated.
Thanks
Naveen.
Created 03-14-2017 11:19 PM
@naveen sangam: Values for 'Ranger Admin username for Ambari' and 'Ranger Admin user's password for Ambari' should be set when installing Ranger through Ambari as the user set here is used by Ambari to create Ranger repo/policies.
The user you set under 'admin_username' and 'admin_password' is used for logging into Ranger UI as an admin user. This user gets created in Ranger Ui with same password as is set in Ambari UI.
Were you ever able to login to Ranger UI using the username and password you set in 'admin_username' and 'admin_password'? What did you do after that?
After installing Ranger, Ideally the only time you want to update these passwords in Ambari are if you changed the passwords of these users in Ranger first, not the other way round.
Also refer: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_Install_Guide/content/updating_ran...
Created 03-14-2017 06:44 AM
@naveen sangam Are you seeing any errors when you try to change the password. You need to keep the password for "amb_ranger_admin" on Ambari UI and Ranger Admin in sync.
Created 03-15-2017 04:12 AM
Santhosh,
I see error : User:amb_ranger_admin credentials on Ambari UI are not in sync with Ranger
though , i sync password ( to same password) , Changes / new passwords are not are not getting saved.
Thanks
Naveen
Created 03-15-2017 07:34 AM
@naveen sangam amb_ranger_admin is the admin user used by Ambari to create repo/policies in Ranger. If you are able to login to Ranger UI using amb_ranger_admin, set the same password in Ambari as well under Ranger Configs > Advanced> Ranger Admin user's password for Ambari and restart Ranger via Ambari for the change to take into effect.
Created 03-14-2017 11:19 PM
@naveen sangam: Values for 'Ranger Admin username for Ambari' and 'Ranger Admin user's password for Ambari' should be set when installing Ranger through Ambari as the user set here is used by Ambari to create Ranger repo/policies.
The user you set under 'admin_username' and 'admin_password' is used for logging into Ranger UI as an admin user. This user gets created in Ranger Ui with same password as is set in Ambari UI.
Were you ever able to login to Ranger UI using the username and password you set in 'admin_username' and 'admin_password'? What did you do after that?
After installing Ranger, Ideally the only time you want to update these passwords in Ambari are if you changed the passwords of these users in Ranger first, not the other way round.
Also refer: http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_Install_Guide/content/updating_ran...
Created 09-16-2018 02:52 PM
I keep asking myself because so many people feels the necessity to respond something even when then don't know how to response the original question raised by the user with the problem. When someone post a question here it's supposed they have checked the (sometimes very) basic instructions in the manual, and even more if there is a clear description about that, and about the problem persisting after doing the basic steps as in this case.
So, it is a matter of personal pride or winning some points with this forum or even Hortonworks company for the number of useless responses you submit?
Not a single response here address the real problem the user is asking about, and most of them are treating the one asking as a total dummy.
Please filter yourself, read carefully the submitting question and think I you really are contributing something valuable or asking some feedback important for the "real" problem, before responding as a reflex act, to avoid lowering the quality of this forum and making people lose time reading again and again the very same "quotes" from the (many times incomplete) manuals.
Created 09-16-2018 06:35 PM
Respect to the problem of keeping in sync amb_ranger_admin password between Ranger and Ambari, via the Web UI you can change these values as follows:
However if you have already tested and succeeded logging in to the Ranger Admin with this user and the password you have already setup in Ambari this may no be the problem.
To go to the source and check the real passwords in the Ambari and Ranger configuration you have to go to the info in the corresponding databases.
SELECT version,create_timestamp,type_name,config_data FROM ambari.clusterconfig WHERE type_name LIKE 'ranger-env' ORDER BY version DESC LIMIT 1
SELECT login_id, password, status from x_portal_userIn this case the password field is a hash combining the password and the user name; so you will have to use the following to compare with the previous value:
echo -n 'yourpassword{amb_ranger_admin}' | md5sum
If the previous passwords are differents and you have done the steps from the beginning in each UI then you have to check why Ambari (most certainly) is not updating your configuration. On the other side if the passwords match, then probably you have another problem with Ambari configuration.
Created 01-17-2019 04:52 PM
If you want to be sure whether one of the two components is updating the password, consider checking the md5sum before and after you change it (and make sure to change it to a different value).