Hi, the following is a script for NetworkManager to check if winbind is running and we have winbind offline logon enabled. If the network comes up it will set winbind in online mode to try to connect to the DC and if the network goes down it will set it to offline mode. The script requires systemd.