[SSSD] how does the offline mode work?

Jakub Hrozek jhrozek at redhat.com
Wed Sep 1 11:48:57 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/01/2010 01:23 PM, Eric Doutreleau wrote:
> but when i put the network cable on sssd is not aware of the network 
> back before one or two minutes.
> is there a way to speed up the process?
> it would be nice if i could send a signal to check again with Networkmanager

We don't integrate with NetworkManager, but rely on libnl (a low-level
library NetworkManager itself uses). The main advantage of using libnl
directly was that our detection system works even on systems that don't
use NM. Support of libnetlink is present since SSSD 1.3, what version
are you running?

There are basically two ways the SSSD can go back online:
1) as you noticed, after a timeout. The timeout is currently hardcoded
to 60 seconds after SSSD went offline.

2) when libnl detects an interface has gone up (IFF_LOWER_UP). Then you
should see debug messages (in /var/log/sssd/sssd.log) indicating that
sssd monitor has detected a link up and is resetting provider status to
online, similar to these:

(Wed Sep  1 13:44:24 2010) [sssd] [link_msg_handler] (8): netlink link
message: iface idx 2 flags 0x11043
(Wed Sep  1 13:44:24 2010) [sssd] [network_status_change_cb] (9): A new
route has appeared, signaling providers to reset offline status

Hope this helps,
	Jakub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkx+PakACgkQHsardTLnvCWaTACeJV9nNWVPq7ug6oZDuUB0UeQ1
X6UAoNGZXy8k6RKMlCE5D7qp6UTS45qA
=ZM4N
-----END PGP SIGNATURE-----



More information about the sssd-devel mailing list