Page 1 of 1

After reboot no connection to AD

Posted: 02 Sep 2015 12:59
by Knappe
Primary DC and NAS4FREE are installed on different servers.

After power interruption can both start up with different speeds.
Therefore, it may happen that NAS4FREE was started earlier, but still no AD available.
After boot, NAS4FREE never checked (again), whether an access to the AD is possible or not. In above-mentioned case, it´s not possible.
Only after a manual restart of Samba (where the service win bind starts too) can again take place authentication against the AD.

Is there any solution for this ?

--------------------------------------
Version NAS4Free 9.3.0.2 (1771)

Re: After reboot no connection to AD

Posted: 02 Sep 2015 13:09
by b0ssman
simple fix of the top of my head.

write a scripts thats pings the dc.
if available done.
if not ping till available then restart samba

install script as postinit script

Re: After reboot no connection to AD

Posted: 02 Sep 2015 13:14
by noclaf
would slightly change that :

if available restart samba
if not ping till available then restart samba

//still remains risk in that ping!=server booted&ready.

Re: After reboot no connection to AD

Posted: 02 Sep 2015 13:46
by b0ssman
or replace ping with a connect attempt on the samba port

Re: After reboot no connection to AD

Posted: 02 Sep 2015 23:39
by Knappe
hmm.. are you sure that the Active Directory Domain Services are NOT started after the network services during boot ?
In this scenario ping will work, Samba would restarted (but could´t connect to not yet started AD Services) and the script will stop.

May be it´s a better way to evaluate/check the output of "wbinfo -u" /"…-w" or other parameter ?