Skip to main content
gerasimos
Gold ⭐️
Feb 8, 2019 11:00 AM UTC
Solved

Hue: disabling LDAP does not enable local "Add user"

Hello,

 

I am experimenting with LDAP integration, which I managed to make it work in Hue.

 

Now, I switched the 'backend' property back to 'desktop.auth.backend.AllowFirstUserDjango.Backend', restarted Hue and I can login with the local user as before LDAP.

 

However, on the User Admin page I still see "Add/Sync LDAP user" and not the local "Add user".

 

Which other option prevents the local functionality from showing up?

 

Thank you,

Gerasimos

bgooley
bgooleyAnswer
Gold ⭐️
Feb 8, 2019 3:56 PM UTC

@gerasimos,

 

I think I opened a Jira on this a while back but forgot to follow up on it.

Try removing the LDAP server hostname from your Hue configuration.  I think if it has a value that tells Hue you plan on using LDAP to sync users.  The Jira I opened requests that both buttons be present (so you can add local but still sync from LDAP if desired).

 

Since the feature to import users is separate from the method of authentication, changing the auth method didn't impact the sync config.

6 replies

bgooley
Gold ⭐️
bgooleyAnswer
Gold ⭐️
Feb 8, 2019 3:56 PM UTC

@gerasimos,

 

I think I opened a Jira on this a while back but forgot to follow up on it.

Try removing the LDAP server hostname from your Hue configuration.  I think if it has a value that tells Hue you plan on using LDAP to sync users.  The Jira I opened requests that both buttons be present (so you can add local but still sync from LDAP if desired).

 

Since the feature to import users is separate from the method of authentication, changing the auth method didn't impact the sync config.

Translate
gerasimos
gerasimosAuthor
Gold ⭐️
Feb 8, 2019 4:01 PM UTC

Yeap! Removing the URL auto-removed all the accompanied LDAP parameters (so I have to re-write them later to enable LDAP, which I tried to avoid)

 

Thank you,

Gerasimos

Translate
gerasimos
gerasimosAuthor
Gold ⭐️
Feb 8, 2019 4:06 PM UTC

... but the "Password" fields are now disabled:

 

Screen Shot 2019-02-08 at 18.05.12.png

 

 

I edited the HTML page and removed "readonly=true", and I managed to create the user.

Translate