Changing login-formats for Linux and Active Directory

On CentOS, I run realm list and see login-formats: %[email protected]

I'd like to change login-formats: %[email protected] to login-formats: %U

How would I go about doing this? I'm assuming there is a .conf file, I've checked sssd.conf and krb5.conf and even checked man on those files.

What I'm trying to do is allow an active directory user to login to the linux box using username@host instead of username@domain@host. Currently username@domain@host works fine but not username@host.

Any help is greatly appreciated.


Solution 1:

This was kind of confusing to figure out for me because there was no reference to the term login-formats anywhere in any documentation.

In /etc/sssd/sssd.conf

add a line in the domain section to include this:

    [domain/contoso.com]
    ...
    use_fully_qualified_names = False
    ...

then restart sssd.