Using a Non-Default Authentication Method

About this task

The default authentication method is PAM.

To edit the authentication method used for the Hue interface, complete the following steps:

Procedure

  1. Set the backend property equal to your selected authentication method. For example, to use Hue's user authentication, select desktop.auth.backend.AllowFirstUserDjangoBackend.
  2. If you choose not to use PAM, comment the pam_service property.

Example

Example hue.ini configued to use PAM Authentication
[[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