02-08-2019 03:00 AM - edited 02-08-2019 03:00 AM
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?
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.
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)
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.
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.