[Samba] winbind: does it actually depend on nmbd? and network-online?

Rowland Penny rpenny at samba.org
Thu May 2 11:17:43 UTC 2024


On Thu, 2 May 2024 13:44:47 +0300
Michael Tokarev via samba <samba at lists.samba.org> wrote:

> Hi!
> 
> In packaging/systemd/winbind.service, there's this ordering:
> 
> After=network.target nmb.service
> 
> Does winbind really need nmbd running?

Well, no and yes ;-)

No, if you are running Samba as an AD Unix domain member without SMBv1
(in which case, you do not need nmbd at all), but if you are still
running an NT4-style domain, then you need nmbd to provide NetBIOS
Browsing.

> 
> Another interesting dependency here.  nmb.service (in the same
> directory) has
> 
> Wants=network-online.target
> After=network.target network-online.target
> 
> Note nmbd needs network to be online.  While winbind only needs
> network to be up.  If winbind requires nmbd, who in turn requires
> network to be online, winbind will be started only with online
> network.  If we drop winbind dependency on nmbd here, winbind will
> be started earlier, before network is online.
> 
> Does winbind requires network to be online or just up?

No idea about that, perhaps Jeremy will know.

Rowland



More information about the samba mailing list