TrueNAS
Products
Support & Resources
Solutions
Company
Sign In
TrueNASTrueNAS Development Documentation
This content follows experimental development changes in TrueNAS 27, a future version of TrueNAS.
Use the Product and Version selectors above to view content specific to a stable software release.

Directory Services Screens

The Directory Services screen and widgets provide access to TrueNAS settings to set up access to directory services and advanced authentication systems deployed in user environments.

TrueNAS does not configure Active Directory domain controllers or LDAP directory servers, nor does it configure Kerberos authentication servers or ID mapping systems.

Refer to documentation for these services and systems for information on how to configure each to suit your use case.

The Directory Services screen configuration options set up access to directory servers through domain and account settings, and can set up ID mapping or Kerberos authentication and authorization services.

Directory Services Screen
Figure 1: Directory Services Screen

The screen shows the status of directory services when a service is not configured or when it is configured but disabled.

The main option displays:

  • Configure Directory Services opens the Directory Services Configuration form where you can set up Active Directory, IPA, or LDAP connections.
  • Advanced Settings

After configuring a directory service, the card for it shows a menu with two to three options:

  • Settings, which opens the Edit Directory Service screen.
  • Rebuild Directory Service Cache, which synchronizes the cache if it gets out of sync or there are fewer users than expected available in the permissions editors.
  • Leave, which shows only when the AD server is joined and healthy. This removes the computer account and associated DNS records from Active Directory.

Directory Services Configuration Screen

The Directory Services Configuration screen shows common and directory service-specific settings based on the type of directory service selected in Configuration Type.

Common settings:

Directory Service-specific settings:

After configuring a directory service, the Settings option opens the Directory Services Configuration screen showing the editable settings for that directory service screen.

Clear Config clears the current directory service configuration settings. Save retains changes. After using Clear Config, Save removes the cleared directory service configuration from TrueNAS allowing you to configure a new directory service configuration, for example, clearing an LDAP configuration to allow configuring Active Directory.

Basic Configuration

The Basic Configuration settings show settings common to the three directory services available in TrueNAS: Active Directory, LDAP, and IPA (formerly FreeIPA).

Directory Services Configuration -Basic Settings
Figure 2: Directory Services Configuration - Basic Settings
Basic Configuration Settings
SettingDescription
Configuration TypeSets the type of directory service. Options are: Active Directory, LDAP, and IPA. Each option shows the Credential Configuration settings and changes the setting options shown for each type of directory service. Only one directory service can be active at a time.
Enable ServiceEnables the directory service when selected. If TrueNAS has never been joined to the specified domain (IPA or Active Directory), enabling causes TrueNAS to attempt to join the domain.
NOTE! The domain join process for Active Directory and IPA makes changes to the domain, such as creating a new computer account for the TrueNAS server and creating DNS records for TrueNAS. Enabled by default. Leave disabled to deactivate the configuration without deleting it and allow reenabling it later without reconfiguring it. The screen returns to the default settings and provides the option to configure AD, LDAP, or IPA.
Enable Account CacheEnables backend caching for user and group lists. Caches user/group information for performance. When enabled, directory services users and groups are presented as choices in the UI dropdowns and in API responses for user and group queries. Also controls whether users and groups appear in getent results. Disable to reduce load on the directory server when necessary. Enabled by default.
Enable DNS UpdatesAllows TrueNAS to automatically register and update its DNS records on the DNS server for the domain when its IP address changes. Uses Kerberos authentication to verify TrueNAS has permission to update its own records. Enabled by default. Disable only if your DNS server does not support dynamic updates or if DNS is managed manually.
Timeout (seconds)Sets the number of seconds before the directory service connection times out. The timeout value for DNS queries that are performed as part of the join process and NETWORK_TIMEOUT for LDAP requests (5-60 seconds). Valid range is 1-40 seconds.
Kerberos RealmSpecifies the existing Kerberos realm from Kerberos Realms configuration in an uppercase domain format like EXAMPLE.COM. When left empty, Kerberos is not used for binding to the directory service, but when joining an Active Directory or IPA domain for the first time, the realm is detected and configured automatically if not specified.

Credential Configuration

The Credential Type setting changes the authentication settings shown for the directory service no matter which type is selected in Configuration Type. Active Directory, IPA and LDAP all show Kerberos authentication options, but LDAP shows additional settings based on LDAP options.

Credential Type sets the credential used to bind to the specified directory service. Kerberos credentials are required for Active Directory or IPA domains. Generic LDAP environments support various authentication methods. Available methods depend on the remote LDAP server configuration. If Kerberos credentials are selected for LDAP, GSSAPI binds replace plain LDAP binds. Use Kerberos or mutual TLS authentication when possible for better security.

Credential Configuration Kerberos User
Figure 3: Credential Configuration Kerberos User
Credential Configuration Kerberos Principal
Figure 4: Credential Configuration Kerberos Principal
Kerberos Credential Configuration Settings
SettingDescription
Credential TypeSets the credential type for authentication. Options: Kerberos User or Kerberos Principal. Kerberos User shows the Username and Password settings. Kerberos Principal shows the Kerberos Principal. Kerberos credentials are required for Active Directory or IPA domains. Generic LDAP environments support various authentication methods. Available methods depend on the remote LDAP server configuration. If Kerberos credentials are selected for LDAP, GSSAPI binds replace plain LDAP binds. Use Kerberos or mutual TLS authentication when possible for better security.
UsernameSpecifies the username of the account to used to create a Kerberos ticket for authentication to directory services. This account must exist on the domain controller. A Kerberos ticket is a time-limited encrypted credential issued by the domain controller that allows TrueNAS to authenticate to domain services without transmitting passwords over the network.
PasswordSpecifies the password for the bind account that obtains the Kerberos ticket. A Kerberos ticket is a time-limited encrypted credential issued by the domain controller that allows TrueNAS to authenticate to domain services without transmitting passwords over the network. Required for first configuration only. After initial configuration, uses Kerberos Principal.
Kerberos PrincipalSets the location of the principal in the keytab from Kerberos Keytab. Shows when Credential Type is set to Kerberos Principal. A Kerberos principal is the unique identity, formatted as username@DOMAIN.COM, that Kerberos uses to issue authentication tickets. Kerberos keytabs configured in TrueNAS show on the dropdown list. The specified principal must have a matching entry in a keytab stored on TrueNAS. Keytabs are managed in Directory Services > Advanced Settings > Kerberos Keytabs. If a keytab entry does not exist for the specified principal, authentication fails.
LDAP Credential Configuration Settings

When Configuration Type is set to LDAP, Credential Configuration shows five options to define the authentication method for LDAP access:

  • LDAP Plain
  • LDAP Anonymous (shows no additional settings)
  • LDAP MTLS
  • Kerberos Principal
  • Kerberous User

Each option shows different settings in Credential Configuration.

SettingDescription
Bind DNSpecifies the distinguished name to use for authentication. This is the administrative account name for the LDAP server. Shows when LDAP Plain is selected. For example, cn=Manager,dc=test,dc=org.
Bind PasswordSpecifies the password for the Bind DN. Shows when LDAP Plain is selected.
Client CertificateSpecifies the client certificate to use for mutual TLS authentication to the remote LDAP server. Shows when Configuration Type is LDAP and Credential Type is LDAP MTLS.
Kerberos PrincipalSets the location of the principal in the keytab from Kerberos Keytab. Shows when Credential Type is set to Kerberos Principal. A Kerberos principal is the unique identity, formatted as username@DOMAIN.COM, that Kerberos uses to issue authentication tickets. Kerberos keytabs configured in TrueNAS show on the dropdown list. The specified principal must have a matching entry in a keytab stored on TrueNAS. Keytabs are managed in Directory Services > Advanced Settings > Kerberos Keytabs. If a keytab entry does not exist for the specified principal, authentication fails.
UsernameSpecifies the username of the account to used to create a Kerberos ticket for authentication to directory services. This account must exist on the domain controller. A Kerberos ticket is a time-limited encrypted credential issued by the domain controller that allows TrueNAS to authenticate to domain services without transmitting passwords over the network. Shows when Credential Type is set to Kerberos User.
PasswordSpecifies the password for the bind account that obtains the Kerberos ticket. A Kerberos ticket is a time-limited encrypted credential issued by the domain controller that allows TrueNAS to authenticate to domain services without transmitting passwords over the network. Required for first configuration only. After initial configuration, uses Kerberos Principal. Shows when Credential Type is set to Kerberos User.

Active Directory Configuration

The Active Directory Configuration section settings define the connection parameters and domain-specific options.

Active Directory Configuration
Figure 9: Active Directory Configuration
Active Directory Configuration Settings
SettingDescription
TrueNAS HostnameSpecifies the hostname of the TrueNAS server to register in AD or IPA during the join process. Cannot exceed 15 characters or contain the `\ / : * ? < >
Domain NameSpecifies the name of the name of the Active Directory, IPA, or SMB domain (e.g., example.com) or child domain. Editable after saving. The full DNS domain name of the Active Directory or IP domain must not be a domain controller. for example, mydomain.internal. The name of the SMB domain is as defined in the IPA configuration for the IPA domain to which TrueNAS is joined. SMB configuration Domain Name shows when *Configuration Type is IPA and Use Default SMB Domain Configuration is disabled.
Site NameSpecifies the Active Directory site where the TrueNAS server is located. TrueNAS detects this automatically during the domain join process. Sets the relative distinguished name (RDN) of the AD site object.
Computer Account OUSpecifies the organizational unit (OU) where the TrueNAS computer object is created when joining the Active Directory domain for the first time. The OU string includes the distinguished name (DN) of the Computer Account OU value. For example, OU=Computers,DC=example,DC=com. Use this setting to override the default organizational unit (OU) in which the TrueNAS computer account is created during the domain join. Use it to set a custom location for TrueNAS computer accounts.
Use Default DomainEnables removing domain name prefix (DOMAIN) from users/groups. Might be required for specific configurations, such as Kerberos authentication with NFS for AD users. Controls if the system removes the domain prefix from Active Directory user and group names. When enabled, users show as administrator instead of EXAMPLE\administrator. Leave disabled to avoid name conflicts between Active Directory and local accounts. NOT RECOMMENDED as this can cause collisions with local accounts.

Active Directory Trusted Domain Configuration

Beginning in TrueNAS 25.10, trusted domains are configured as part of the Active Directory configuration rather than as separate IDmap entries.

The Trusted Domains Configuration section controls access for trusted domains.

Enable Trusted Domains sets the Trusted Domains option that allow clients to access TrueNAS if they are members of domains with a trust relationship. Shows the Trusted Domains option that allow clients to access TrueNAS if they are members of domains with a trust relationship. When enabled, shows the Trusted Domain section and Add button. As of TrueNAS 25.10 and later, configured in directory services vs separate IDMAP entries.

Add shows the Basic Configuration section with the IDMAP Backend options.

Trusted Domain Configuration
Figure 10: Trusted Domain Configuration

IDMAP Backend defines how domain accounts joined to TrueNAS are mapped to Unix UIDs and GIDs on the TrueNAS server. Most TrueNAS deployments use the RID backend, which algorithmically assigns UIDs and GIDs based on the Active Directory account SID. Another common option is the AD backend, which reads predefined Active Directory LDAP schema attributes that assign explicit UID and GID numbers to accounts. Another common option is the AD backend, which reads predefined Active Directory LDAP schema attributes that assign explicit UID and GID numbers to accounts.

The IDMAP Backend dropdown list shows four options:

  • AD (RFC2307/SFU attributes from Active Directory)
  • LDAP
  • RFC2307 (RFC2307 attributes from a standalone LDAP server)
  • RID (Default - algorithmic mapping based on RID values)

Each option shows different settings.

Trusted Domain AD (RFC2307/SFU Attributes from Active Directory) Settings
SettingDescription
NameSpecifies the short name for the domain. This should match the NetBIOS domain name for Active Directory domains.
Range LowSpecifies the lowest UID or GID that the IDMAP backend can assign for the trusted domain. Shows for all IDMAP backend types, and when Configuration Type is Active Directory and Enable Trusted Domains is enabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Schema ModeSpecifies the schema mode the IDMAP backend uses to query Active Directory for user and group information. The schema mode in the IDMAP backend uses to query Active Directory for user and group information. The RFC2307 schema applies to Windows Server 2003 R2 and newer. The Services for Unix (SFU) schema applies to versions before Windows Server 2003 R2. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is AD (RFC2307/SFU attributes from Active Directory).
Unix Primary GroupDefines if the user’s primary group is fetched from Unix attributes (Services for Unix) or the Active Directory primary group. If enabled, the TrueNAS server uses the gidNumber LDAP attribute. If disabled, it uses the primaryGroupID LDAP attribute.
Unix NSS InfoIf enabled, the login shell and home directory are retrieved from LDAP attributes (Unix attributes in Active Directory). If disabled, or if the Active Directory LDAP entry lacks Unix attributes, the home directory defaults to /var/empty.
Trusted Domain LDAP Settings
SettingDescription
NameSpecifies the short name for the domain. This should match the NetBIOS domain name for Active Directory domains.
Range LowSpecifies the lowest UID or GID that the IDMAP backend can assign for the trusted domain. Shows for all IDMAP backend types, and when Configuration Type is Active Directory and Enable Trusted Domains is enabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
LDAP Base DNSets the directory base suffix to use for mapping UIDs and GIDs to SIDs. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP.
LDAP User DNDefines the user DN to be used for authentication to the trusted domain LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP.
LDAP User DN PasswordSpecifies the secret to use for authenticating the user specified by LDAP User DN to the trusted domain RFC2307 LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP UrlSpecifies the LDAP server to use for the IDMAP entries. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
ReadonlyPrevents TrueNAS from writing new IDMAP entries to the trusted domain LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP.
Validate CertificatesVerify certificate authenticity.
Trusted Domain RFC2307 Attributes from Standalone LDAP Server Settings
SettingDescription
NameSpecifies the short name for the domain. This should match the NetBIOS domain name for Active Directory domains.
Range LowSpecifies the lowest UID or GID that the IDMAP backend can assign for the trusted domain. Shows for all IDMAP backend types, and when Configuration Type is Active Directory and Enable Trusted Domains is enabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
LDAP UrlSpecifies the LDAP server to use for the IDMAP entries. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP User DNDefines the user DN used for authentication to the trusted domain RFC2307 LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP User DN PasswordSpecifies the secret to use for authenticating the user specified by LDAP User DN to the trusted domain RFC2307 LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP UrlSpecifies the LDAP server to use for the IDMAP entries. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
Bind Path UserSpecifies the search base that contains user objects in the LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
Bind Path GroupSpecifies the search base that contains group objects in the LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
User CNQueries the CN attribute instead of the UID attribute for the user name in LDAP. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP RealmAppends @realm to the CN for groups. Also, append it to users if User CN is specified. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
Validate CertificateVerify certificate authenticity. TrueNAS validates the full certificate chain. TrueNAS does not support non-CA certificates when certificate validation is required. When disabled, TrueNAS does not validate certificates from a remote LDAP server. It is better to use valid certificates or import them into the TrueNAS server trusted certificate store. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
Trusted Domain RID (Default - Algorithmic Mapping Based on RID Values) Settings
SettingDescription
NameSpecifies the short name for the domain. This should match the NetBIOS domain name for Active Directory domains.
Range LowSpecifies the lowest UID or GID that the IDMAP backend can assign for the trusted domain. Shows for all IDMAP backend types, and when Configuration Type is Active Directory and Enable Trusted Domains is enabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
SSSD CompatGenerates an IDMAP low range using the algorithm from SSSD. Use this option if the domain uses only a single SSSD IDMAP slice. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RID (Default - algorithmic mapping based on RID values).

IDMAP Configuration (AD)

Use Trusted Server IDMAP Defaults is enabled by default. Use the TrueNAS default IDMAP configuration unless you want to customize ID mapping. Defaults are suitable for new deployments without existing support for Unix-like operating systems. The default configuration uses the RID backend with predefined UID/GID ranges (builtin: 90000001-100000000, domain: 100000001-200000000).

When disabled, it shows IDMAP configuration settings to customize ID mapping.

IDMAP Configuration
Figure 15: IDMAP Configuration
Only administrators experienced with configuring ID mapping should customize IDMAP settings.

IDMAP Builtin Settings

The Builtin settings map Windows built-in local groups to Unix GIDs, defining the UID/GID range allocated to Windows built-in local groups, such as Administrators, Users, and Guests. TrueNAS creates this entry automatically when joining a domain. Adjust the range only if it conflicts with existing local UID/GID assignments.

IDMAP Configuration Builtin Settings
SettingDescription
NameSpecifies the short name for the joined domain. This should match the NetBIOS domain name for Active Directory domains.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.

IDMAP Domain Settings

IDMAP Domain settings configure how TrueNAS maps Windows domain users and groups from the joined domain to Unix UIDs and GIDs. The selected backend determines whether mappings are generated algorithmically or read from directory attributes. The UID/GID range defined here must not overlap with local accounts or trusted domain ranges.

The IDMAP Backend configuration defines how domain accounts the domain TrueNAS is joined to are mapped to Unix UIDs and GIDs on the TrueNAS server. Most TrueNAS deployments use the RID backend, which algorithmically assigns UIDs and GIDs based on the Active Directory account SID. Another common option is the AD backend, which reads predefined Active Directory LDAP schema attributes that assign explicit UID and GID numbers to accounts.

The IDMAP Backend dropdown list shows four options:

  • AD (RFC2307/SFU attributes from Active Directory)
  • LDAP
  • RFC2307 (RFC2307 attributes from a standalone LDAP server)
  • RID (Default - algorithmic mapping based on RID values)

Each option shows different settings.

IDMAP Domain AD (RFC2307/SFU Attributes from Active Directory) Settings
SettingDescription
NameSpecifies the short name for the joined domain. Typically matches the NetBIOS domain name.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Schema ModeSpecifies the schema mode the IDMAP backend uses to query Active Directory for user and group information. The schema mode in the IDMAP backend uses to query Active Directory for user and group information. The RFC2307 schema applies to Windows Server 2003 R2 and newer. The Services for Unix (SFU) schema applies to versions before Windows Server 2003 R2. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is AD (RFC2307/SFU attributes from Active Directory).
Unix Primary GroupDefines if the user primary group is fetched from Unix attributes (Services for Unix) or the Active Directory primary group. If enabled, TrueNAS ses the gidNumber LDAP attribute. If disabled, it uses the primaryGroupID LDAP attribute. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is AD (RFC2307/SFU attributes from Active Directory).
Unix NSS InfoControls whether login shell and home directory are retrieved from LDAP Unix attributes in Active Directory. When disabled, or if the Active Directory LDAP entry lacks Unix attributes, the home directory defaults to /var/empty. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is AD (RFC2307/SFU attributes from Active Directory).
IDMAP Domain LDAP Settings
SettingDescription
NameSpecifies the short name for the joined domain. Typically matches the NetBIOS domain name.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
LDAP Base DNSets the directory base suffix to use for mapping UIDs and GIDs to SIDs. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP.
LDAP User DNDefines the user DN used for authentication to the trusted domain RFC2307 LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP User DN PasswordSpecifies the secret to use for authenticating the user specified by ldap_user_dn to the trusted domain LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP UrlLDAP server to use for the IDMAP entries. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
ReadonlyPrevents TrueNAS from writing new IDMAP entries to the trusted domain LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP.
Validate CertificatesVerify certificate authenticity. TrueNAS validates the full certificate chain. TrueNAS does not support non-CA certificates when certificate validation is required. When disabled, TrueNAS does not validate certificates from a remote LDAP server. It is better to use valid certificates or import them into the TrueNAS server trusted certificate store. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
IDMAP Domain RFC2307 Attributes from Standalone LDAP Server Settings
SettingDescription
NameSpecifies the short name for the joined domain. Typically matches the NetBIOS domain name.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
LDAP UrlLDAP server to use for the IDMAP entries. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP User DNDefines the user DN used for authentication to the trusted domain RFC2307 LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP User DN PasswordSpecifies the secret to use for authenticating the user specified by ldap_user_dn to the trusted domain LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
Bind Path UserSpecifies the search base that contains user objects in the LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
Bind Path GroupSpecifies the search base that contains group objects in the LDAP server. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
User CNQueries the CN attribute instead of the UID attribute for the user name in LDAP. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
LDAP RealmAppends @realm to the CN for groups. Also, append it to users if User CN is specified. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is RFC2307 (RFC2307 attributes from a standalone LDAP server).
Validate CertificateVerify certificate authenticity. TrueNAS validates the full certificate chain. TrueNAS does not support non-CA certificates when certificate validation is required. When disabled, TrueNAS does not validate certificates from a remote LDAP server. It is better to use valid certificates or import them into the TrueNAS server trusted certificate store. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
IDMAP Domain RID (Default - Algorithmic Mapping Based on RID Values) Settings
SettingDescription
NameSpecifies the short name for the joined domain. Typically matches the NetBIOS domain name.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
SSSD CompatGenerate an IDMAP low range using the algorithm from SSSD. Use this option if the domain uses only a single SSSD IDMAP slice.

LDAP Configuration

The LDAP Configuration section settings define the connection parameters and validation options.

LDAP Configuration
Figure 20: LDAP Configuration
LDAP Configuration Settings
SettingDescription
Server URLsSpecifies the hostname or IP address of the LDAP server. Separate entries by pressing Enter. Multiple URLs create an LDAP failover priority list. If a host does not respond, TrueNAS tries the next host until it establishes a connection. If using a cloud service LDAP server, do not include the full URL.
Base DNSpecifies the base distinguished name (base DN) to use when performing LDAP operations. For Example, dc=example,dc=com.
Start TLSEncrypts the LDAP connection with STARTTLS on the default LDAP port 389. Options for encrypting the LDAP connection:
  • OFF - Does not encrypt the LDAP connection.
  • ON- Encrypts the LDAP connection with SSL on port 636.
  • START_TLS- Encrypts the LDAP connection with STARTTLS on the default LDAP port 389
.
Validate CertificatesVerify certificate authenticity. TrueNAS validates the full certificate chain. TrueNAS does not support non-CA certificates when certificate validation is required. When disabled, TrueNAS does not validate certificates from a remote LDAP server. It is better to use valid certificates or import them into the TrueNAS server trusted certificate store. Shows when Configuration Type is Active Directory, Enable Trusted Domains is enabled, and IDMAP Backend is LDAP or RFC2307 (RFC2307 attributes from a standalone LDAP server).
SchemaSets the LDAP NSS schema. Options are RFC2307 or RFC2307BIS.
  • RFC2307 — Standard Unix attributes schema. Compatible with most LDAP servers, including OpenLDAP.
  • RFC2307BIS — Extended schema that supports nested group membership. Use if your LDAP server is configured with RFC2307bis.

Auxiliary Parameters (LDAP)

The Auxiliary Parameters subsection allows customization of auxiliary parameters.

Use Standard Auxiliary Parameters sets the LDAP directory server to use standard auxiliary parameters. Disable to enter custom options for nslcd.conf. Warning! Auxiliary parameters are an unsupported configuration. Parameters entered here are not validated and can cause undefined system behaviors, including data corruption or data loss! Disabled by default.

LDAP Auxiliary Parameters
Figure 21: LDAP Auxiliary Parameters
Auxiliary parameters are an unsupported configuration. Parameters entered here are not validated and can cause undefined system behavior, including data corruption or data loss.

Search Bases

The Search Bases uses standard search bases when enabled. Disable to allows customization of search base DNs. Use the base DN for user, group, and netgroup searches. Disable to specify alternative LDAP search base settings to define where to find user, group, and netgroup entries. Use custom search bases only if the LDAP server uses a non-standard LDAP schema or if you want to limit the accounts available on TrueNAS.

LDAP Search Bases
Figure 22: LDAP Search Bases
Search Bases Settings
SettingDescription
User Base DNSets the base DN to use when searching for LDAP user accounts. Restricts user searches to a specific directory subtree. For example, ou=users,dc=example,dc=org. Shows when Configuration Type is LDAP and Use Standard Search Bases is disabled.
Group Base DNSets the base DN to use when searching for LDAP group accounts. Restricts group searches to a specific directory subtree. For example, ou=groups,dc=example,dc=org. SShows when Configuration Type is LDAP and Use Standard Search Bases is disabled.
Netgroup Base DNSets the base DN to use when searching for LDAP netgroup accounts. Restricts netgroup searches to a specific directory subtree. For example, ou=netgroups,dc=example,dc=org. Shows when Configuration Type is LDAP and Use Standard Search Bases is disabled.

Attribute Maps

The Attribute Maps settings allow customization of attribute mappings by defining custom LDAP attribute names for user and group account fields. An attribute left blank uses the default attribute name for that field. Only use custom attribute maps if the LDAP server is non-standard, if your LDAP schema uses non-standard attribute names.

Use Standard Attribute Maps is enabled by default, and uses standard RFC2307 or RFC2307BIS attribute mappings. When disabled, the standard LDAP attribute mapping for LDAP servers that do not follow RFC2307 or RFC2307BIS shows to allow for customization.

The screen groups settings into LDAP password attributes, shadow attributes, and group attributes: LDAP Password Attributes, LDAP Shadow Attributes, LDAP Group Attributes, and LDAP Net Group Attributes.

LDAP Password Attribute Settings
SettingDescription
User Object ClassSpecifies the entry object class in LDAP for the user entries. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Username AttributeSpecifies the LDAP attribute for the login name for the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
UID AttributeSpecifies the LDAP attribute for the id of the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
GID AttributeSpecifies the LDAP attribute for the primary group id for the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
GECOS AttributeSpecifies the LDAP attribute for the gecos field for the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Home Directory AttributeSpecifies the LDAP attribute for the home directory for the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Shell AttributeSpecifies the LDAP attribute for the path to the default shell for the user. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
LDAP Shadow Attribute Settings
SettingDescription
Last Change AttributeSpecifies the LDAP attribute for password last change date. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Min Days AttributeSpecifies the LDAP attribute for minimum password age. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Max Days AttributeSpecifies the LDAP attribute for maximum password age. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Warning AttributeSpecifies the LDAP attribute for password warning period. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Inactive AttributeSpecifies the LDAP attribute for the account inactive period. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Expire AttributeSpecifies the LDAP attribute for account expiration. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
LDAP Group Attribute Settings
SettingDescription
Group Object ClassSpecifies the LDAP object class for groups. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Netgroup Member AttributeSpecifies the LDAP attribute for group members. Shows when Configuration Type is LDAP and Use Standard Attribute Mapsis disabled.
Netgroup Triple AttributeSpecifies the LDAP attribute for group triples. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
type: input
LDAP Net Group Attribute Settings
SettingDescription
Netgroup Object ClassSpecifies the LDAP object class for netgroup entries. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.
Netgroup Member AttributeSpecifies the LDAP attribute for group members. Shows when Configuration Type is LDAP and Use Standard Attribute Mapsis disabled.
Netgroup Triple AttributeSpecifies the LDAP attribute for group triples. Shows when Configuration Type is LDAP and Use Standard Attribute Maps is disabled.

IPA Configuration

The IPA Configuration settings define the connection parameters and validation options.

IPA Configuration
Figure 27: IPA Configuration
IPA Configuration Settings
SettingDescription
Target ServerSpecifies the name of the IPA server (hostname or IP address) that TrueNAS uses to build URLs when it joins or leaves the IPA domain. For example: ipa.example.internal.
TrueNAS HostnameSpecifies the hostname of the TrueNAS server to register in AD or IPA during the join process. Cannot exceed 15 characters or contain the `\ / : * ? < >
DomainSpecifies the name of the Active Directory, IPA, or SMB domain (e.g., example.com) or child domain. Editable after saving. The full DNS domain name of the Active Directory or IP domain must not be a domain controller, for example, mydomain.internal. The name of the SMB domain is as defined in the IPA configuration for the IPA domain to which TrueNAS is joined. SMB configuration Domain Name shows when *Configuration Type is IPA and Use Default SMB Domain Configuration is disabled.
Base DNSpecifies the base distinguished name (base DN) to use when performing LDAP operations. For example: dc=example,dc=com.
Validate CertificatesVerifies certificate authenticity when connecting to the IPA server. When enabled, TrueNAS validates the full certificate chain. TrueNAS does not support non-CA certificates when certificate validation is required. When disabled, TrueNAS does not validate certificates from the remote LDAP server. It is better to use valid certificates or import them into the TrueNAS server trusted certificate store.

SMB Domain Configuration

The SMB Domain Configuration settings control SMB integration.

Use Default SMB Domain Configuration is enabled by default, and uses the default SMB domain settings detected during the IPA join. Settings for the IPA SMB domain are automatically detected by TrueNAS during the domain join process. Some IPA domains might not include SMB schema configuration. IPA includes integrated Samba support and can provide user and group information for SMB authentication. Disable to enter custom settings.

IPA SMB Domain Configuration
Figure 28: IPA SMB Domain Configuration
SMB Domain Configuration Settings
SettingDescription
NameSpecifies the short name for the IPA domain used for SMB access. Typically matches the IPA domain name.
Domain NameSpecifies the name of the Active Directory, IPA, or SMB domain (e.g., example.com) or child domain. Editable after saving. The full DNS domain name of the Active Directory or IP domain must not be a domain controller. for example, mydomain.internal. The name of the SMB domain is as defined in the IPA configuration for the IPA domain to which TrueNAS is joined. SMB configuration Domain Name shows when *Configuration Type is IPA and Use Default SMB Domain Configuration is disabled.
Range LowSets the lowest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Range HighSets the highest UID or GID that the IDMAP backend can assign. UIDs and GIDs outside the range are ignored. Setting shows when Configuration Type is set to Active Directory and Use TrueNAS Server IDMAP Defaults is disabled.
Domain SIDSpecifies the domain SID for the IPA domain to which TrueNAS is joined. Shows when Configuration Type is IPA and Use Default SMB Domain Configuration is disabled.

Advanced Settings

The Show button to the right of Advanced Settings opens a warning dialog stating that incorrectly configuring advanced settings is dangerous. Continue closes the warning dialog.

Directory Services Warning
Figure 29: Directory Services Warning

After closing the warning dialog, the Directory Services screen shows the Kerberos Realm and Kerberos Keytab cards.

Directory Services Advanced SettingsCards
Figure 30: Directory Services Advanced Settings Cards

Each Kerberos card shows the realms or keytabs configured in TrueNAS.

Add on the Kerberos cards opens configuration screens for each Kerberos function:

Add Kerberos Realms

The Add Kerberos Realm screen allows adding a Kerberos realm to the TrueNAS system.

add Kerberos Realms Screen
Figure 31: add Kerberos Realms Screen
SettingDescription
RealmSpecifies a short name for the Kerberos realm. The Kerberos standard allows upper case characters, DNS rules apply, and does not exceed 253 characters (letters, digits, and/or hyphens). TrueNAS does not enforce naming conventions, but requires entering a name.
Primary KDCSpecifies the master Kerberos domain controller KDC (Key Distribution Center) for this realm. It is the one that issues tickets. If you cannot reach it, you cannot authenticate. TrueNAS uses this as a fallback if it cannot get credentials because of an invalid password. This can help in environments where the domain uses a hub-and-spoke topology. Use this setting to reduce credential errors after TrueNAS automatically changes its machine password.
KDCSpecifies the name of the Key Distribution Center. Pressing Enter separates multiple values. Use additional/secondary KDC(s) for redundancy. If the primary KDC is unavailable, Kerberos can fall back to these. Environments with hub-and-spoke topology often have multiple KDCs.
Admin ServerDefines the server where all changes (adding/modifying principals) to the database are performed. Pressing Enter separates multiple values. Unlike KDC, you can have many KDCs but typically only one admin server.
Password ServerDefines the server where all password changes are performed. It is often the same host as the admin server but can be separate. Pressing Enter separates multiple values.

Add Kerberos Keytabs

The Add Kerberos Keytabs allows adding a keytab file using the file browser option and assigning the keytab a name.

Add Kerberos Keytabs Screen
Figure 32: Add Kerberos Keytabs Screen

Name specifies a short name for the keytab on the TrueNAS system. Kerberos does not have a name convention for keytab files.

Choose File opens the file browser to locate and upload a keytab file. Kerberos keytab files are binary files in a specific format (MIT Kerberos keytab format). Keytab files can have either the .keytab or .kt extension.