9

We're trialling using a Ubuntu 14.04 desktop environment for a few of our developers and I've hooked the machines into the domain with SSSD. This has been working fine. However the system recognises the domain users as user@DOMAIN.COM, so 'ls -l' output is quite messy. It also turns out they have some test scripts that have username hardcoded and so this @DOMAIN.COM breaks them.

Is there a way to make SSSD show the domain users as just 'username' instead of 'username@DOMAIN.COM'? If not, is there a system that will allow me to do this?

Thanks

Snowflake Sam
  • 137
  • 1
  • 3
  • 9

2 Answers2

10

The 'default_domain_suffix' answer is valid for users from a trusted domain (i.e. IPA-AD trust is in place).

However, if your setup only has one domain, then removing "use_fully_qualified_names=True" from the config is an easier way.

jhrozek
  • 1,320
  • 6
  • 5
  • Whilst I didn't have 'use_fully_qualified_names' enabled. This put me on my way to working out how to completely eliminate the 'SMALLBUSINESS.LAN' component. – Snowflake Sam Jan 08 '15 at 12:44
  • Correction; this did entirely do what I needed. There was just some strange things going on with my test system after all the options I'd changed. – Snowflake Sam Jan 08 '15 at 14:06
1

you need to add default_domain_suffix to your sssd.conf file. Bear in mind it only works under [sssd] section.

e.g.:

[sssd]
domains = YOURDOMAIN
config_file_version = 2
services = nss, pam
default_domain_suffix = YOURDOMAIN
Starfish
  • 2,716
  • 24
  • 28
Allan Vein
  • 11
  • 1