Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Enabling SPNEGO authentication for Hue

Enabling SPNEGO authentication for Hue

Explorer

Hi,

 

Is there a way that I can enable SPNEGO authentication for Hue installed using Cloudera Manager 5.1.2 and CDH 5.1.2. 

5 REPLIES 5

Re: Enabling SPNEGO authentication for Hue

In the Hue safety valve, you can change the backend to

https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini#L133

[dekstop]
[[auth]]
backend=desktop.auth.backend.SpnegoDjangoBackend

https://issues.cloudera.org/browse/HUE-892

Romain

Re: Enabling SPNEGO authentication for Hue

Explorer

Thanks Romain for the help!!

 

I have added below property to Hue safety valve. After that I restarted for the changes to refelect. But even after restart, user login authentication is going through Local DB but not Kerberos. Are there any other changes that I need to specify so that user authentication in Hue UI uses Kerberos.

 

[dekstop]
[[auth]]
backend=desktop.auth.backend.SpnegoDjangoBackend

Highlighted

Re: Enabling SPNEGO authentication for Hue

Did you logout before trying to login again?

Romain

Re: Enabling SPNEGO authentication for Hue

Explorer

Yes. I did logged out and tried to login using Kerberos credentials it is failing. But when I tried using local DB credentials it went through successfully. 

Re: Enabling SPNEGO authentication for Hue

Maybe you are not modifying the good ini.

What do you see on the /desktop/dump_config page?

For the ini path and the backend property?

Romain