Support Questions

Find answers, ask questions, and share your expertise

Knox SSO for Ambari Problem

avatar
Explorer

knox version:1.0.0

ambari version:2.7.5

Knox SSO SAML for Ambari have a prompt:

 

Spoiler
For single sign-on, make sure that Knox Gateway and Ambari Server are located on the same host or subdomain.
Alternatively login as an Ambari local user using the local login page.
http://example.com:8080/#/login/local

ambari-server log:

 

微信截图_20210422192818.png

 

knox config

111.png2222.png

 

 

ambari setup-sso reference:

https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.0/configuring-knox-sso/content/sso_set_up_knox_s...

 

Thank you very much for your reply!

 

4 REPLIES 4

avatar
Master Collaborator

@tancy  Can you confirm is Ambari is synced with ldap/Ad, if Ambari is not synced with ldap/Ad, sync the users and then try to login again

avatar
Explorer

thank you, it is not synced with ldap/Ad and lgoin success. But i have a doubt that ambari authentication type include JWT, how can i sync the JWT to table 'user_authentication'

avatar
Master Collaborator

@tancy Once logged into Knox SSO, the UI service uses a cookie named hadoop-jwt. The Knox Token Service enables clients to acquire this same JWT token , you can check this jwt token in browser developer tools

 

Can you confirm are you trying with the local admin user 

avatar
Explorer

Yes, it is exist a hadoop-jwt cookie and i tested with the local admin user. I debug this class AmbariJwtAuthenticationProvider follow:

微信截图_20210424110207.png

 

I only know sync the table ‘user_authentication’ with command sync-ldap, i can not find the way update authentication type JWT into the table 'user_authentication'