On Mon, Jan 6, 2020 at 6:02 PM Manuel Sopena Ballesteros
<manuel.sb(a)garvan.org.au> wrote:
Our intention is to mount user home directory from out centralized
storage using autofs but for some reason the mount point goes to
/home/<domain>/<userlogin> instead of /home/<userlogin>
This is out sssd configuration
[domain/<domain>]
…
[nss]
fallback_homedir = /home/%u
You need to move the fallback_homedir setting from the [nss] section
to the domain section.
While it is possible to set fallback_homedir in the [nss] section, it
is more properly a configuration option of the domain’s data provider,
and should therefore be set in the domain sections, not in the [nss]
section.
Also, and more importantly, starting with sssd 2.0.0 (on RHEL8), the
AD provider now implicitly sets "fallback_homedir = /home/%d/%u".
Even though that is an implicit setting, it still (and perhaps
non-intuitively?) overrides even an *explicit* fallback_homedir in the
[nss] section.
The only way to override the implicit default fallback_homedir setting
of the AD provider is to set fallback_homedir in each domain section
that uses the AD provider.