Reply
Highlighted
Explorer
Posts: 24
Registered: ‎07-30-2014

Enabling SPNEGO authentication for Hue

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. 

Cloudera Employee
Posts: 722
Registered: ‎07-30-2013

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

Explorer
Posts: 24
Registered: ‎07-30-2014

Re: Enabling SPNEGO authentication for Hue

[ Edited ]

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

Cloudera Employee
Posts: 722
Registered: ‎07-30-2013

Re: Enabling SPNEGO authentication for Hue

Did you logout before trying to login again?

Romain

Explorer
Posts: 24
Registered: ‎07-30-2014

Re: Enabling SPNEGO authentication for Hue

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. 

Cloudera Employee
Posts: 722
Registered: ‎07-30-2013

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