Authelia Setup
Authelia which is available in the premium train can act as the authentication provider for your apps and services either through OAuth or forward authentication. LLDAP can be used to manage your Authelia users and groups. To enable this as an option follow the steps outlined below. References to the specific questions as they appear in the TrueNAS SCALE UI are included in the guide and highlighted along with the answers you should use. Authelia is the recommended authentication provider for TrueCharts however you can use any other provider you wish for Authentik is available in the Stable train.
This guide has been written as LLDAP has specific requirements for the LDAP setup of Authelia. If you are using another LDAP provider you will need to follow the setup instructions for that provider.
Disclaimer: This guide only covers the LDAP setup of Authelia. Refer to other guides for the remaining setup of Authelia.
Setup instructions
-
Tick the box for
LDAP backend configuration
a further set of questions will then appear. -
The dropdown
Implementation
should be set ascustom
-
URL should be set to internally link back to your LLDAP instance for the default configuration it should look something like this,
ldap://lldap-ldap.ix-lldap.svc.cluster.local:3890
. This will need to be adapted if you have named LLDAP differently or used a different port for LDAP. -
Next, set the
Base DN
. This is one of the configurable options you set when installing LLDAP, which by default isdc=example,dc=com
and should be adapted to your domain if set. -
The
Username Attribute
should be set touid
. -
The
Additional Users DN
should be set toou=people
, as this is where all your users are stored. -
The users filter can be set to one of two options depending on whether you want to allow sign-in with a username or both username and email. Both options are outlined below.
Username only
Username and email
-
The next option that needs setting is
Additional Groups DN
. It must be set toou=groups
, as this is where all your groups are stored. -
LLDAP only supports only one filter, which should be set in
Groups Filter
and set to(member={dn})
. -
The
Group name Attribute
should be set tocn
. -
The
Mail Attribute
should simply be set tomail
. -
The
Display Name Attribute
should be set todisplayName
. This is the attribute that Authelia will use to greet users when they log in. -
Admin user
is the default admin user used when setting up LLDAP initially and is auto-generated for you. The entry you input into this box should look something like the one below. Changedc=example,dc=com
to match theBase DN
you set earlier.Admin user
-
Enter the admin user password into the
Password
field. As stated earlier, DO NOT use the default password.
References
The origin material for this guide is available on the LLDAP Github. While further information on Authelia can be found on their Github and website.
Support
If you have any issues with following this guide, we can be reached using Discord for real-time feedback and support.
All Rights Reserved - The TrueCharts Project