LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2016, 10:23 AM   #1
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Rep: Reputation: 16
SSSD "forgets" group name


I'm standing up SSSD as a client to use against my LDAP server. I have a POSIX group defined in LDAP (name: "mygroup", GID: 501) of which I am a member.

SSSD appears to be configured correctly client-side. I can successfully see this group and its members by executing "getent group mygroup". When I do an "id myusername", I see the groups I am part of, displayed as follows:

uid=1540(myusername) gid=502(users) groups=502(users),501(mygroup)

Looks great! But then about five minutes later, I repeat the "id myusername" command and get the following:

uid=1540(myusername) gid=502(users) groups=502(users),501

SSSD is still aware that there is a GID 501 that I am a member of, but it "forgets" that group name. This actually causes some issues with things like access.conf that rely on that group name. I have experimented with the "entry_cache_group_timeout" parameter in sssd.conf but no luck so far.

Advice? tia
 
Old 04-18-2016, 03:46 PM   #2
gatsby
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 16
I think I figured it out. Turns out my LDAP group had been accidentally assigned the same GID (501) as another LDAP. The tip-off was this in the sssd_nss.log file:

[sssd[nss]] [nss_cmd_getgrgid_search] (0x0010): getgrgid call returned more than one result !?!

What seems to have been happening is that my lookup of the group via getent group mygroup would put that entry into the in-memory cache of SSSD. The default time for that cache to flush itself is 300 seconds (i.e. five minutes). Once my group was assigned a new unique GID in LDAP, SSSD appears to be holding onto the entry beyond what it was holding onto before.
 
Old 04-18-2016, 05:43 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Good job and well done.
 
  


Reply



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
[SOLVED] How to add the "dialout" group in my system without the command "groupadd"? floppy_stuttgart Linux - Networking 3 09-19-2013 02:55 PM
Squeeze, Gnome - Network Manager "forgets" mobile broadband connections 0men Debian 1 08-10-2011 07:36 AM
[SOLVED] MySQL 5.0.32-Debian_7etch8 "forgets" permissions repeatedly rocket357 Linux - Server 1 04-26-2011 03:00 PM
firefox v3.6.8 "forgets" google search and other settings SaintDanBert Linux - Desktop 11 09-17-2010 05:57 PM
system "forgets" how to connect to the internet hyrral Linux - Wireless Networking 1 03-23-2006 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:21 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