+--------------------------------------------------------------------------------+
+                      Active Directory Status @1604323802                       +
+--------------------------------------------------------------------------------+
Active Directory is DISABLED
debug finished in 0 seconds for Active Directory Status


+--------------------------------------------------------------------------------+
+                    Active Directory Run Status @1604323802                     +
+--------------------------------------------------------------------------------+
nmbd is running as pid 1206.
smbd is running as pid 1213.
winbindd is running as pid 1222.
+--------------------------------------------------------------------------------+
+                                   @1604323802                                  +
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
+                         SMB Service Status @1604323802                         +
+--------------------------------------------------------------------------------+
SMB will start on boot.
debug finished in 0 seconds for SMB Service Status


+--------------------------------------------------------------------------------+
+                     Active Directory Settings @1604323802                      +
+--------------------------------------------------------------------------------+
{
  "id": 1,
  "domainname": "",
  "bindname": "",
  "ssl": "OFF",
  "certificate": null,
  "validate_certificates": true,
  "verbose_logging": false,
  "allow_trusted_doms": false,
  "use_default_domain": false,
  "allow_dns_updates": true,
  "disable_freenas_cache": false,
  "site": null,
  "kerberos_realm": null,
  "kerberos_principal": "",
  "createcomputer": "",
  "timeout": 60,
  "dns_timeout": 10,
  "idmap_backend": "RID",
  "nss_info": null,
  "ldap_sasl_wrapping": "SIGN",
  "enable": false,
  "netbiosname": "freenas",
  "netbiosalias": []
}
debug finished in 0 seconds for Active Directory Settings


+--------------------------------------------------------------------------------+
+                           /etc/krb5.conf @1604323802                           +
+--------------------------------------------------------------------------------+

debug finished in 0 seconds for /etc/krb5.conf


+--------------------------------------------------------------------------------+
+                         /etc/nsswitch.conf @1604323802                         +
+--------------------------------------------------------------------------------+


group: files
hosts: files dns
networks: files
passwd: files
shells: files
services: files
protocols: files
rpc: files
sudoers: files 
debug finished in 0 seconds for /etc/nsswitch.conf


+--------------------------------------------------------------------------------+
+                      /usr/local/etc/smb4.conf @1604323802                      +
+--------------------------------------------------------------------------------+


[global]
        dns proxy = No
        aio max threads = 2
        max log size = 51200
        allocation roundup size = 0
        load printers = No
        printing = bsd
        disable spoolss = Yes
        dos filemode = Yes
        kernel change notify = No
        directory name cache size = 0
        nsupdate command = /usr/local/bin/samba-nsupdate -g
        unix charset = UTF-8
        log level = 1
        obey pam restrictions = False
        enable web service discovery = True
        username map = /usr/local/etc/smbusername.map
        username map cache time = 60
        logging = file
        server min protocol = SMB2_02
        unix extensions = No
        restrict anonymous = 2
        server string = FreeNAS Server
        bind interfaces only = Yes
        netbios name = freenas
        netbios aliases = 
        server role = standalone
        workgroup = WORKGROUP
        idmap config *: backend = tdb
        idmap config *: range = 90000001-100000000

        include = /usr/local/etc/smb4_share.conf
debug finished in 0 seconds for /usr/local/etc/smb4.conf


+--------------------------------------------------------------------------------+
+                   /usr/local/etc/smb4_share.conf @1604323802                   +
+--------------------------------------------------------------------------------+


[RAID-NAS]
        read only = no
        hide dot files = no
        vfs objects = streams_xattr shadow_copy_zfs ixnas
        nfs4:chown = true
        nfs4:acedup = merge
        aio write size = 0
        mangled names = illegal
        ea support = false
        path = /mnt/RAID-NAS

debug finished in 0 seconds for /usr/local/etc/smb4_share.conf


+--------------------------------------------------------------------------------+
+                     Kerberos Tickets - 'klist' @1604323802                     +
+--------------------------------------------------------------------------------+
klist: No ticket file: /tmp/krb5cc_0
debug finished in 0 seconds for Kerberos Tickets - 'klist'


+--------------------------------------------------------------------------------+
+                   Kerberos Principals - 'ktutil' @1604323802                   +
+--------------------------------------------------------------------------------+
ktutil: krb5_kt_start_seq_get FILE:/etc/krb5.keytab: keytab /etc/krb5.keytab open failed: No such file or directory
debug finished in 0 seconds for Kerberos Principals - 'ktutil'


+--------------------------------------------------------------------------------+
+            Active Directory Trust Secret - 'wbinfo -t' @1604323802             +
+--------------------------------------------------------------------------------+
wbcCheckTrustCredentials(WORKGROUP): error code was NT_STATUS_NO_SUCH_DOMAIN (0xc00000df)
failed to call wbcCheckTrustCredentials: WBC_ERR_AUTH_ERROR
Could not check secret
checking the trust secret for domain WORKGROUP via RPC calls failed
debug finished in 0 seconds for Active Directory Trust Secret - 'wbinfo -t'


+--------------------------------------------------------------------------------+
+         Active Directory NETLOGON connection - 'wbinfo -P' @1604323802         +
+--------------------------------------------------------------------------------+
failed to call wbcPingDc: WBC_ERR_DOMAIN_NOT_FOUND
checking the NETLOGON for domain[WORKGROUP] dc connection to "" failed
debug finished in 0 seconds for Active Directory NETLOGON connection - 'wbinfo -P'


+--------------------------------------------------------------------------------+
+           Active Directory trusted domains - 'wbinfo -m' @1604323802           +
+--------------------------------------------------------------------------------+
Domain Name     DNS Domain                                                       Trust Type  Transitive  In   Out  
BUILTIN                                                                          Local
FREENAS                                                                          Local
debug finished in 0 seconds for Active Directory trusted domains - 'wbinfo -m'


+--------------------------------------------------------------------------------+
+       Active Directory all domains - 'wbinfo --all-domains' @1604323802        +
+--------------------------------------------------------------------------------+
BUILTIN
FREENAS
debug finished in 0 seconds for Active Directory all domains - 'wbinfo --all-domains'


+--------------------------------------------------------------------------------+
+        Active Directory own domain - 'wbinfo --own-domain' @1604323802         +
+--------------------------------------------------------------------------------+
WORKGROUP
debug finished in 0 seconds for Active Directory own domain - 'wbinfo --own-domain'


+--------------------------------------------------------------------------------+
+     Active Directory online status - 'wbinfo --online-status' @1604323802      +
+--------------------------------------------------------------------------------+
BUILTIN : active connection
FREENAS : active connection
debug finished in 0 seconds for Active Directory online status - 'wbinfo --online-status'


+--------------------------------------------------------------------------------+
+  Active Directory domain info - 'wbinfo --domain-info=WORKGROUP' @1604323802   +
+--------------------------------------------------------------------------------+
failed to call wbcDomainInfo: WBC_ERR_DOMAIN_NOT_FOUND
Could not get domain info
debug finished in 1 seconds for Active Directory domain info - 'wbinfo --domain-info=WORKGROUP'


+--------------------------------------------------------------------------------+
+        Active Directory DC name - 'wbinfo --dsgetdcname=""' @1604323803        +
+--------------------------------------------------------------------------------+
Could not find dc for ""
debug finished in 2 seconds for Active Directory DC name - 'wbinfo --dsgetdcname=""'


+--------------------------------------------------------------------------------+
+      Active Directory DC info - 'wbinfo --dc-info=WORKGROUP' @1604323805       +
+--------------------------------------------------------------------------------+
Could not find dc info WORKGROUP
debug finished in 0 seconds for Active Directory DC info - 'wbinfo --dc-info=WORKGROUP'


+--------------------------------------------------------------------------------+
+                Active Directory Users - 'wbinfo -u' @1604323805                +
+--------------------------------------------------------------------------------+
Error looking up domain users
+--------------------------------------------------------------------------------+
+               Active Directory Groups - 'wbinfo -g' @1604323805                +
+--------------------------------------------------------------------------------+
failed to call wbcListGroups: WBC_ERR_DOMAIN_NOT_FOUND
Error looking up domain groups
debug finished in 0 seconds for Active Directory Groups - 'wbinfo -g'


+--------------------------------------------------------------------------------+
+                     Active Directory SPN list @1604323805                      +
+--------------------------------------------------------------------------------+
[EFAULT] Failed to generate SPN list: [ads_connect: No logon servers are currently available to service the logon request.
ads_connect: No logon servers are currently available to service the logon request.]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
    io_thread=False)
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1084, in _call
    return await methodobj(*args)
  File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 961, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/activedirectory.py", line 1370, in get_spn_list
    f"Failed to generate SPN list: [{netads.stderr.decode().strip()}]"
middlewared.service_exception.CallError: [EFAULT] Failed to generate SPN list: [ads_connect: No logon servers are currently available to service the logon request.
ads_connect: No logon servers are currently available to service the logon request.]

debug finished in 4 seconds for Active Directory SPN list


