Using a Non-Default Authentication Method
About this task
To edit the authentication method used for the Hue interface, complete the following steps:
Procedure
-
Set the
backend
property equal to your selected authentication method. For example, to use Hue's user authentication, selectdesktop.auth.backend.AllowFirstUserDjangoBackend.
-
If you choose not to use PAM, comment the
pam_service property.
Example
[[auth]]
# Authentication backend. Common settings are:
# - django.contrib.auth.backends.ModelBackend (entirely Django backend)
# - desktop.auth.backend.AllowAllBackend (allows everyone)
# - desktop.auth.backend.AllowFirstUserDjangoBackend
# (Default. Relies on Django and user manager, after the first login)
# - desktop.auth.backend.LdapBackend
# - desktop.auth.backend.PamBackend - WARNING: existing users in Hue may be unaccessible if they not exist in OS
# - desktop.auth.backend.SpnegoDjangoBackend
# - desktop.auth.backend.RemoteUserDjangoBackend
# - libsaml.backend.SAML2Backend
# - libopenid.backend.OpenIDBackend
# - liboauth.backend.OAuthBackend
# (Support Twitter, Facebook, Google+ and Linkedin
backend=desktop.auth.backend.PamBackend
# The service to use when querying PAM.
pam_service=sudo sshd login