Created on 02-08-2019 03:00 AM - edited 09-16-2022 07:08 AM
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
Created 02-08-2019 07:56 AM
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.
Created 02-08-2019 07:56 AM
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.
Created on 02-08-2019 08:01 AM - edited 02-08-2019 08:02 AM
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
Created on 02-08-2019 08:06 AM - edited 02-08-2019 08:09 AM
... but the "Password" fields are now disabled:
I edited the HTML page and removed "readonly=true", and I managed to create the user.
Created 02-08-2019 08:18 AM
In the code, it appears if desktop.auth.backend.LdapBackend is configured, then the password fields are read-only as you see there. Is it possible that you still have the LdapBackend set? If you haven't yet, it may be good to log out and back into Hue after having reconfigured the auth backend to AllowFirstUserDjangoBackend. I wonder if something may be cached in the browser.
Created 02-08-2019 08:24 AM
You are right. I had forgot a dual backend configuration in hue_safety_valve.ini.
Created 02-08-2019 08:26 AM
I'm glad that was it because I couldn't figure out many other possible causes of that sort of behavior :-).