FreeNAS + VMWare + AD + CIFS auth = problem after boot

andriy_

Cadet
Joined
Aug 21, 2018
Messages
6
Hello,

I have pretty weird configuration (FreeNAS is a latest stable):
FreeNAS is a storage of Windows VMs (accessible via iSCSI) that are executed by remote ESXi host. Windows Active Directory is one of that VMs also.
And FreeNAS provides with an access to data via Samba/CIFS for Windows users. It works fine with FreeNAS Active Directory turned on until reboot.

I have an issue on the whole system boot/reboot. The boot sequence is following:
1. FreeNAS boots first
2. Samba starts and looks for the Active Directory, but failed. Alarm is fired.
3. ESXi starts next and starts AD
4. FreeNAS dismisses the Alarm
5. CIFS storage can't be accessed with Windows users

I've tried to migrate to LDAP instead of AD, but Windows dropped Identity Management for UNIX, so I'm afraid to update AD with the Samba schema. Without it Samba doesn't authenticate CIFS users via LDAP.

Either I need to configure Samba + LDAP + AD (without Samba scheme) or automatically restart Samba after AD becomes online. How to do it (except of direct SSHing)? Any other options?
 
Top