NethServer Version: NethServer release 7.8.2003 (final)
Module: sssd + AD/Samba possibly.
Hi,
I hope there’s someone out there that can help. I’ve been using NethServer for quite a few years and I’ve trawled through all the existing similar posts that I’ve found but haven’t come across a solution yet.
I decided to take the plunge and upgrade from v6 to v7 and I’d staged the 1st part of the upgrade waiting for an opportune moment to do the reboot. However, today we had a power outage and my hand was forced and during which the power cycled several times before I got to the power switch…
It seemed to mostly go OK and I fixed the httpd problem that stopped the GUI from starting but I’m now stuck with a box that has lost all its user info. The biggest problem is that emails are getting bounced by Postfix with “User does not exist” and I can’t log into it as me over IMAP to collect email. As you can imagine, this is quite a headache as we get all our personal emails delivered to this box.
In v6, it was running as a Samba workstation, no NT4 domain or AD config. The br0 and extra AD.DOMAIN.COM IP address seemed to get added OK during the 1st phase of the upgrade.
The primary cause seems to be sssd as the config file is completely empty. How should this get constructed? Also, I got the following error showing repeatedly in the log:
Jun 2 14:15:01 server esmith::event[17617]: [ERROR] could not connect to Samba Domain Controller
Jun 2 14:15:01 server esmith::event[17617]: Action: /etc/e-smith/events/nethserver-dc-save/S95nethserver-dc-waitstart FAILED: 1 [904.857944]
Jun 2 14:15:03 server esmith::event[17617]: Log to /var/spool/createldapservice-AFDBCa.log
Jun 2 14:15:03 server esmith::event[17617]: + errors=0
Jun 2 14:15:03 server esmith::event[17617]: ++ get_dn ldapservice
Jun 2 14:15:03 server esmith::event[17617]: ++ /usr/bin/ldbsearch -H /var/lib/samba/private/sam.ldb sAMAccountName=ldapservice dn
Jun 2 14:15:03 server esmith::event[17617]: ++ sed -n '/^dn: / { s/\r// ; p ; q }'
Jun 2 14:15:03 server esmith::event[17617]: ltdb: tdb(/var/lib/samba/private/sam.ldb): tdb_open_ex: could not open file /var/lib/samba/private/sam.ldb: No such file or directory
Jun 2 14:15:03 server esmith::event[17617]:
Jun 2 14:15:03 server esmith::event[17617]: Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Jun 2 14:15:03 server esmith::event[17617]: Failed to connect to '/var/lib/samba/private/sam.ldb' with backend 'tdb': Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Jun 2 14:15:03 server esmith::event[17617]: Failed to connect to /var/lib/samba/private/sam.ldb - Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Jun 2 14:15:03 server esmith::event[17617]: + [[ -z '' ]]
Jun 2 14:15:03 server esmith::event[17617]: + samba-tool user create ldapservice --random-password --must-change-at-next-login --login-shell=/usr/bin/false '--given-name=NethServer LDAP simple auth identity' --use-username-as-cn
Jun 2 14:15:03 server esmith::event[17617]: ltdb: tdb(/var/lib/samba/private/sam.ldb): tdb_open_ex: could not open file /var/lib/samba/private/sam.ldb: No such file or directory
Jun 2 14:15:03 server esmith::event[17617]:
Jun 2 14:15:03 server esmith::event[17617]: Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Jun 2 14:15:03 server esmith::event[17617]: Failed to connect to 'tdb:///var/lib/samba/private/sam.ldb' with backend 'tdb': Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
So, with my Sherlock cap on, I’m guessing that whatever script generated the necessary AD/Samba/sssd config didn’t get to do its work.
The basic IPv4 NAT, DNS, DHCP, etc. is working fine but the higher level identity and authentication has failed.
I can obviously add any relevant log information but I didn’t want to fill my 1st post with unnecessary spam.
I have already tried to yum reinstall sssd and nethserver-dc but this hasn’t helped.
I’m hoping there’s someone out there that can!
Cheers.