LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2018, 12:51 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Domain member, getent no longer working


I have a Slackware64 14.2 workstation that has been running as a Samba4 domain member for 2 1/2 years w/o problem. Today, after a reboot, 'getent passwd' returns NO domain members and domain users can no longer log on. I'm sure I did something inadvertent, yet stupid, but I've no idea what. winbindd and samba appear to be running. smb.conf is unchanged dating to 2 years ago. PAM modules appear to be in place. 'wbinfo -u' and 'wbinfo -g' work. 'wbinfo -i mark' gives:
Code:
# wbinfo -i mark
failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
Could not get info for user mark
The following messages are repeated in a burst of 9 pairs every 30 seconds:
Code:
Feb 28 01:46:21 labrat winbindd[1326]: [2018/02/28 01:46:21.226625,  0] ../source3/libsmb/cliconnect.c:1895(cli_session_setup_spnego_send)
Feb 28 01:46:21 labrat winbindd[1326]:   Kinit for LABRAT$@HPRS.LOCAL to access cifs/mail.hprs.local@HPRS.LOCAL failed: Preauthentication failed
Do any of you Active Directory gurus have any idea where I might look for the problem?
 
Old 02-28-2018, 05:01 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
mfoley --

Just guessing here ...

Could your /etc/resolv.conf file have been borked ?

Network Manager tends to make a mess of resolv.conf on our CentOS Boxen so we disable it in favor of good-ole hand-edited network config files.

HTH

-- kjh
 
Old 02-28-2018, 10:36 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by kjhambrick View Post
Could your /etc/resolv.conf file have been borked ?

Network Manager tends to make a mess of resolv.conf on our CentOS Boxen so we disable it in favor of good-ole hand-edited network config files.
-- kjh
Yeah, I disabled Network Manager long ago because it messed up other things besides resolv.conf.

I believe I did solve the problem. I tried restoring from a recent backup. Same problem. In fact, I neglected to mention this in my OP, but I had done a previous restore after which the problem manifested. So, for no good reason, I removed the host from the domain, then rejoined the domain (net ads join ...). That actually did the trick!

I'm wondering why. Did restoring to a previous date somehow mess up kerberos settings with respect to the AD server, or something like that which might be time/sequence related? For example I find:
Code:
/var/lib/samba/private/secrets.tdb
/var/lib/samba/private/netlogon_creds_cli.tdb
which would have been restored to a previous date.

If domain rejoining is needed, this would be good to know. I've not actually had to restore a Linux domain workstation since adding them to the AD domain, so if a rejoin needs to be done as a matter of course after a restore I'll have to document that as a mandatory procedure.

Last edited by mfoley; 02-28-2018 at 10:43 PM.
 
1 members found this post helpful.
Old 03-07-2018, 10:41 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, no more comments I guess. I'll go ahead and mark this as solved, but will make a note in my documentation that if a domain member is restored from a previous version then it must be rejoined to the domain. If someone feels that's wrong, please comment.
 
  


Reply

Tags
active directory, fails



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getent passwd inconsistent in different server - domain user jackkyip Linux - General 2 02-20-2017 07:38 PM
getent not working with SSSD R09u3Bull Linux - Server 0 11-15-2012 12:42 AM
getent shadow works but getent passwd does not??? shiv_softengg Linux - Networking 1 04-04-2011 08:06 AM
getent passwd only pulls local info - getent group works? epoh Linux - Server 2 03-14-2008 07:56 AM
Samba 3, Winbind (getent) not returning Domain USers delphiq Linux - Software 1 04-16-2004 05:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration