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 08-10-2017 12:05 PM
Have you checked this tutorial? It has some steps not listed in the official docs.
Created 08-10-2017 05:43 PM
Can you show me the gateway-audit log located in the same directory?
Created 08-11-2017 09:45 AM
yes, I am getting below messages in gateway-audit.log
Created 08-18-2017 07:04 AM
@soumya swain Two things that can go wrong here.
1) The KnoxSSO expects a valid hostname with domain name, as the cookie will be set for that specific domain. So your hostname needs to be in format "{somehost}.{someorganisation}.{someTLD}", e.g. knoxhost.example.com. You can achieve this by making an extra entry in your /etc/hosts file at both the nodes.
2) You need to provide Knox SSL certificate as "Public Certificate pem" value when executing "ambari-server setup-sso" command. Easiest way to get it, is below command. Paste the content between "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" as "Public Certificate pem" value.
openssl s_client -connect knoxhost.example.com:8443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > knoxssoAmbari.crt
Created 11-15-2017 07:18 PM
You are trying to authenticate to a non secured url (http://xxxxx:9081/) with the below configuration. knoxsso.cookie.secure.only = true.
If its is a dev or test environment change knoxsso.cookie.secure.only to false and make a try.
Created 01-18-2018 03:44 PM
Anyone made it work? I have tried the above and still in the same situation. Ambari gets redirected again and again to the authentication portal, whatever it is (LDAP, SAML, OpenID).
Any more ideas?
Created 01-18-2018 08:05 PM
I made it working with CAS server as well as built-in Knox IDP. But the single log out is not working properly.
Created 01-19-2018 02:33 PM
I have checked my ambari-audit.log and asks for LDAP syncing, however ambari is configured to rely on knox.
I don't think 'ambari-server setup-ldap' would be needed if ambari redirects to knox, right?
2018-01-19T08:54:26.761Z, User(null), RemoteIp(X.X.X.X), Operation(User login), Roles( ), Status(Failed), Reason(Authentication required) 2018-01-19T08:54:26.765Z, User(guest), RemoteIp(X.X.X.X), Operation(User login), Roles( ), Status(Failed), Reason(Cannot find user from JWT. Please, ensure LDAP is configured and users are synced.)
Created 01-19-2018 05:42 PM
I didn't try with local users. I think it required remote users (LDAP) to work KNOX SSO.