5.2. Adjusting how SSSD prints full user names
If the use_fully_qualified_names
option is enabled in the /etc/sssd/sssd.conf
file, SSSD prints full user names in the format name@domain
based on the following expansion by default:
%1$s@%2$s
If use_fully_qualified_names
is not set or is explicitly set to false
for trusted domains, it only prints the user name without the domain component.
You can adjust the format in which SSSD prints full user names by adding the full_name_format
option to the /etc/sssd/sssd.conf
file and defining a custom expansion.
Conditions préalables
-
root
access
Procédure
-
As
root
, open the/etc/sssd/sssd.conf
file. To define the expansion globally for all domains, add
full_name_format
to the[sssd]
section ofsssd.conf
.[sssd] [... file truncated ...] full_name_format = %1$s@%2$s
In this case the user name is displayed as
user@domain.test
.To define the user name printing format for a particular domain, add
full_name_format
to the corresponding domain section ofsssd.conf
.To configure the expansion for the Active Directory (AD) domain using
%2$s\%1$s
:[domain/ad.domain] [... file truncated ...] full_name_format = %2$s\%1$s
In this case the user name is displayed as
ad.domain\user
.To configure the expansion for the Active Directory (AD) domain using
%3$s\%1$s
:[domain/ad.domain] [... file truncated ...] full_name_format = %3$s\%1$s
In this case the user name is displayed as
AD\user
if the flat domain name of the Active Directory domain is set toAD
.
For more details, see the descriptions for full_name_format
in the SPECIAL SECTIONS
and DOMAIN SECTIONS
parts of the sssd.conf(5)
man page.
SSSD can strip the domain component of the name in some name configurations, which can cause authentication errors. If you set full_name_format
to a non-standard value, you will get a warning prompting you to change it to a standard format.