Re-enable AD/LDAP in CLI

Status
Not open for further replies.

eroji

Contributor
Joined
Feb 2, 2015
Messages
140
So I'm noticing AD/LDAP gets disabled occasionally when I reboot. I have to manually go enable it again. Is there a way to enable it in command line? I want to just write a script to check if it lost the connection and re-enable it and stick that in cron.
 
D

dlavigne

Guest
Anything in /var/log/messages indicating why it's not starting? Which version of FreeNAS?
 

eroji

Contributor
Joined
Feb 2, 2015
Messages
140
I am guessing at the moment it got disabled due to restart of Samba/CIFS service. However, I have iSCSI share to ESXi, which is hosting the DC server. So on reboot (or powerloss) occasionally, it may be the case that it cannot talk to the DC.

This is what I currently have in messages.
Code:
May 28 10:01:53 freenas ActiveDirectory: /usr/local/bin/python /usr/local/www/freenasUI/middleware/notifier.py stop cifs
May 28 10:01:54 freenas notifier: winbindd not running? (check /var/run/samba/winbindd.pid).
May 28 10:01:54 freenas notifier: smbd not running? (check /var/run/samba/smbd.pid).
May 28 10:01:54 freenas notifier: nmbd not running? (check /var/run/samba/nmbd.pid).
May 28 10:01:55 freenas ActiveDirectory: /usr/sbin/service ix-kerberos quietstop
May 28 10:01:55 freenas ActiveDirectory: /usr/sbin/service ix-nsswitch quietstop
May 28 10:01:57 freenas ActiveDirectory: /usr/sbin/service ix-pam quietstop
May 28 10:01:57 freenas ActiveDirectory: /usr/sbin/service ix-activedirectory forcestop
May 28 10:02:02 freenas ActiveDirectory: /usr/sbin/service ix-cache quietstop &
May 28 10:02:03 freenas ActiveDirectory: /usr/sbin/service samba_server forcestop
May 28 10:02:03 freenas ActiveDirectory: /usr/sbin/service ix-pre-samba start
 
D

dlavigne

Guest
For that use case, it may be worth creating a bug report at bugs.freenas.org as it may be a startup timing issue. If you do, post the issue number here.
 
Status
Not open for further replies.
Top