linux-announce AT lists.psi.ch
Subject: Linux Mailing List
List archive
- From: Bucheli Konrad <konrad.bucheli AT psi.ch>
- To: "linux-announce AT lists.psi.ch" <linux-announce AT lists.psi.ch>
- Subject: AW: [[Linux-announce] ] improved account/group information caching with sssd
- Date: Wed, 16 Jul 2025 07:56:16 +0000
- Accept-language: de-CH, en-CH, en-BE, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=psi.ch; dmarc=pass action=none header.from=psi.ch; dkim=pass header.d=psi.ch; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=a0KnRYKCgt93Y+sG8RE34x22h+fzBFsMyXGpC8pi+xg=; b=RYItLOS3+IWFnef/SxA1me9jmhAdS8dTxBSgpLTlp+wru8qVzW9dq8y86lFmU9eRwZYzliNo9HTr7wfiaAuEy8Sg9YgNEsRb57an9MDG6t5mayN5aAT3iKRldS6AoTYaorva7QJNTx6QfhFos3GhEhL199urhGWT+/H2wx5DmkG7XHDROMZqGMadlZuXZB5bBSyzXnARGzw3qWdnV2U11vDFTHxJexKEmVkdCW1eXRYdxXAm2QQ/zpEoHFDlSTK6PUMutQBLf0Er+ZOoDGgDNIsKP8ySTLtYp0VBWa5O/dBc/v5lSmT48j4CWxuDJGrgpBiCFV4bt8OBULE+U0fmiA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OA+bG2PI3ZtNg7+nm5dUidU5fJ/arx8IKCPOnd6Md7t1HrwB9daAE6BHslCE9CVsmmD2C5i0cHqw4wQyQvH6bm9MDZmgHUYMQDLj/GLGVDn8f7qiiGt78CU+E8KHcVVo+ZG42bkYOHYgZAORh11khbi8oiCfau7o3Cuh0Mq90mTDPKGzlvWCwfENGLpm4HObdaJFC7z8pn7doxNSxcB5ef9fX7Zb1D6dhcbevEUOWbeESS51ptGeEeoSJNLKdvxz7TCph6WWxXinj3jq1yaU11KebVgQ+WNeDOBM3ihXVanAIoAQ3YB3KTi/+EEFomBoZHcV8dsYAPcHDfju/G04xg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=psi.ch;
- Msip_labels:
Dear Linux Admins
This change rolled out this morning by Puppet.
With it also a new script was introduced to be able to fix the case where
group membership changes of a user in the AD should be reflected on the
system immediately. This tool is called "refresh_user" where a non-root user
can refresh the user information in sssd for himself:
refresh_user
or for someone else
refresh_user muster_t
Note that a reboot does not clean the sssd cache. Then also be aware that the
kernel does not update the group membership of a user in already running
sessions, independent of this change. Here some tricks to work around this:
https://www.cyberciti.biz/faq/linux-refresh-reload-group-membership-without-logging-reboot/
Kind regards
Konrad
________________________________________
Von: Bucheli Konrad
Gesendet: Mittwoch, 9. Juli 2025 11:17
An: linux-announce AT lists.psi.ch
Betreff: improved account/group information caching with sssd
Dear Linux Admins
On our RHEL installations the sssd service is responsible for
authentication and AD integration. Unfortunately sssd turned out to be
rather inefficient when dealing with big AD setups. So just looking up
the account information of a user with many groups can lead to > 40MB
network traffic and may need more than one minute. This already led to
problems on some systems. Currently that information is only cached for
5 minutes, so most of the time a lookup will be slow.
To improve the situation we plan to change the default configuration.
The idea is to keep the information in the cache longer (> 12 hours) and
refresh them automatically every 12 hours. So the user information
lookup may be slow only on the very first time and after sssd can always
provide user information from cache.
The downside is that changes in group membership in the AD will only be
visible on your Linux machine the next day.
We have already implemented this behavior in the "preprod" Puppet
environment. Without strong objections that change will reach production
and thus all nodes next Tuesday 16 July.
If you need different behavior please check out our documentation where
the possible configuration options are listed:
https://linux.psi.ch/admin-guide/configuration/basic/ad_integration.html#caching-ad-information
Beside we are also in contact with RedHat and hope to be able to
convince them to improve sssd in this regard.
Feel free to contact linux-eng AT psi.ch if you have questions or remarks.
Kind regards
Konrad
--
Paul Scherrer Institut
Konrad Bucheli
Linux Systems Engineer
Core Linux Research Services
Science IT Infrastructure and Services department (AWI)
OBBA/230
Forschungstrasse 111
5232 Villigen PSI
Switzerland
Phone: +41 56 310 27 24
konrad.bucheli AT psi.ch
www.psi.ch
-
[[Linux-announce] ] improved account/group information caching with sssd,
Konrad Bucheli (PSI), 07/09/2025
- AW: [[Linux-announce] ] improved account/group information caching with sssd, Bucheli Konrad, 07/16/2025
Archive powered by MHonArc 2.6.24.