Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu Server 16.04 SSSD Not Loading

Tags:

ubuntu

sssd

I am attempting to authenticate my Ubuntu 16.04 server to an AD but having trouble loading SSSD. My sssd.conf file looks like this:

[sssd]
services = nss, pam
config_file_version = 2
domains = MYDOMAIN.LOCAL
id_provider = ad
access_provider = ad
override_homedir = /home/%d/%u

It is owned by root:root and file permission is set to 600. When attempting to start SSSD, systemctl reports the following:

● sssd.service - System Security Services Daemon
   Loaded: loaded (/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2016-06-03 08:06:46 EDT; 9s ago
  Process: 6979 ExecStart=/usr/sbin/sssd -D -f (code=exited, status=4)

Jun 03 08:06:46 tempsvr systemd[1]: Starting System Security Services Daemon...
Jun 03 08:06:46 tempsvr sssd[6979]: SSSD couldn't load the configuration database [2]: No such file or directory.
Jun 03 08:06:46 tempsvr systemd[1]: sssd.service: Control process exited, code=exited status=4
Jun 03 08:06:46 tempsvr systemd[1]: Failed to start System Security Services Daemon.
Jun 03 08:06:46 tempsvr systemd[1]: sssd.service: Unit entered failed state.
Jun 03 08:06:46 tempsvr systemd[1]: sssd.service: Failed with result 'exit-code'.

Am I overlooking something? Thanks!!

like image 329
Elcid_91 Avatar asked Jun 03 '16 12:06

Elcid_91


2 Answers

I ran into a similar problem when upgrading to 16.04. I can't tell you what the source of your problem is but the following will provide a lot more useful information to help figure it out:

$ sudo sssd -d9 -i
like image 152
Tim Connolly Avatar answered Jan 03 '23 15:01

Tim Connolly


This question is too old, yet I'm posting this because I run into the same issue (identical error logs) recently after upgrading from Ubuntu 20.04 to Ubuntu 20.10. The problem, in my case, was a missing configuration file on /etc/sssd/sssd.conf.

Check the existence of that configuration file. If the file is missing, try this:

$ sudo cp /usr/lib/x86_64-linux-gnu/sssd/conf/sssd.conf /etc/sssd/
$ sudo chmod 600 /etc/sssd/sssd.conf

And don't forget to restart the service afterwards: sudo systemctl restart sssd.service.

like image 39
Mustapha Hadid Avatar answered Jan 03 '23 16:01

Mustapha Hadid