On 27.05.2026 15:58, IT Kustodiat wrote:

We could stop our breaking logins into Samba-AD, with fixing the start dependencies for winbind.

It has to be ensured, that systemd starts winbindd after the network is online.

Following steps will do this:

## create directory for override-file
/etc/systemd/system/winbind.service.d

## create file /etc/systemd/system/winbind.service.d/override.conf
## with following content

[Unit]
After=network-online.target
Wants=network-online.target


Depending on network-online.target is wrong in almost all cases
(actually I don't know a single case where it's right).

Please note 4 things.

1. Samba always worked this way, there's no changes in this area
   for a very long time.  What you see is some timing-specific issue,
   which depends on a number of events triggering at the right spot.

2. winbindd knows how to retry failed network requests and deal with
  intermittent network failures

3. winbindd has offline mode, which does not require any network to
  be present (but a user has to be logged in at least once, so winbindd
  remembers the credentials).

4. this feels like a bug in winbindd somewhere which needs to be fixed
  for good.

Thanks,

/mjt

Reply via email to