Created 08-10-2017 08:56 AM
I have installed ambari-server and knox in two different server and done all necessary setups for ldaps and sso.but when i log in to ambari, it is sucessfully getting redirected to knox gateway and after i give credentials it goes to ambari ui and then coming back to knox gateway log in screen.
In ambari-server.log i dont see any error and on gateway.log i am only seeing below infos:
Appreciate any help to resolve this.
Created 01-24-2018 01:26 PM
Have you ever seen "Invalid JWT token" in ambari audit log? I get it when knox comes back to ambari after authenticating with something different than LDAP. Deleting the cookies does not work, and I think this is the base of my problem.
Somehow ambari does not like the generated token.
Created 03-14-2019 12:32 PM
@Rafael Leon, I am also facing same issue? Have you resolved this? Could you please suggest.
Created 04-26-2018 07:58 PM
Any conclusion? I tried everything mentioned in this thread and nothing works.
Created 10-26-2019 04:07 AM
I have faced similar issue. When I try to logon to KnoxSSO, it is authenticated correctly and redirected to SSO logon page. After few hours investigation, I have realised that I need to setup ldap configs for my Advanced topology in Knox too. Not just KnoxSSO. I made below changes and I am able to resolve the issue.
Under Advanced Topology
<param>
<name>main.ldapRealm.userDnTemplate</name>
<value>uid={0},cn=users,cn=accounts,dc=us-west-1,dc=compute,dc=internal</value>
</param>
<param>
<name>main.ldapRealm.contextFactory.url</name>
<value>ldap://xxxxxxxxxxx.us-west-1.compute.internal:389</value>
</param>
Under Advanced knoxsso-topology
<param>
<name>main.ldapRealm.userDnTemplate</name>
<value>uid={0},cn=users,cn=accounts,dc=us-west-1,dc=compute,dc=internal</value>
</param>
<param>
<name>main.ldapRealm.contextFactory.url</name>
<value>ldap://xxxxxxxxxxx.us-west-1.compute.internal:389</value>
</param>
<param>
<name>knoxsso.redirect.whitelist.regex</name>
<value>.*</value>
</param>
And I have ensured the Ambari LDAP setup has the same basedn
Created 08-04-2018 04:35 PM
I had a same problem in Ranger UI with Knox SSO, I did following
1.Changed Ranger external url from http://<xxxx>.<xxx>:6080 to http://<xxxx>.<xxx>.<xx>:6080
2.Changed SSO provider url from https://<xxxx>.<xxx>:8443/gateway/knoxsso/api/v1/websso to https://<xxxx>.<xxx>.<xx>:8443/gateway/knoxsso/api/v1/websso
3. set knoxsso.cookie.secure.only=false in Knoxsso topology.
4. changed knoxsso.redirect.whitelist.regex property in knoxsso topology to support new host.
I am able to open ranger UI after above changes :).
Created 08-06-2018 09:11 AM
Check whether the time is in sync between knox server and ambari server. Check whether ntp service is running in both the machines
Created 08-09-2018 09:05 PM
I have created article for Ambari SSO - you can review and check that to see if that helps. https://community.hortonworks.com/articles/212005/steps-to-enable-knox-sso-for-ambari-1.html