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


+--------------------------------------------------------------------------------+
+                    Active Directory Run Status @1641993212                     +
+--------------------------------------------------------------------------------+
nmbd is not running.
smbd is running as pid 1251.
winbindd is running as pid 1259.
+--------------------------------------------------------------------------------+
+                                   @1641993212                                  +
+--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+
+                         SMB Service Status @1641993212                         +
+--------------------------------------------------------------------------------+
SMB will start on boot.
debug finished in 0 seconds for SMB Service Status


+--------------------------------------------------------------------------------+
+                     Active Directory Settings @1641993212                      +
+--------------------------------------------------------------------------------+
{
  "id": 1,
  "domainname": "",
  "bindname": "",
  "verbose_logging": false,
  "allow_trusted_doms": false,
  "use_default_domain": false,
  "allow_dns_updates": true,
  "disable_freenas_cache": false,
  "restrict_pam": false,
  "site": null,
  "timeout": 60,
  "dns_timeout": 10,
  "nss_info": null,
  "enable": false,
  "kerberos_principal": "",
  "createcomputer": "",
  "kerberos_realm": null,
  "netbiosname": "truenas",
  "netbiosalias": []
}
debug finished in 0 seconds for Active Directory Settings


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

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


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


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 @1641993212                      +
+--------------------------------------------------------------------------------+


[global]
        dns proxy = No
        aio max threads = 2
        max log size = 5120
        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 auth_json_audit:3@/var/log/samba4/auth_audit.log
        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 = TrueNAS Server
        bind interfaces only = Yes
        netbios name = truenas
        netbios aliases = 
        server role = standalone
        workgroup = WORKGROUP
        idmap config *: backend = tdb
        idmap config *: range = 90000001-100000000
        registry shares = yes
        include = registry
debug finished in 0 seconds for /usr/local/etc/smb4.conf


+--------------------------------------------------------------------------------+
+                   /usr/local/etc/smb4_share.conf @1641993212                   +
+--------------------------------------------------------------------------------+
debug finished in 0 seconds for /usr/local/etc/smb4_share.conf


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


+--------------------------------------------------------------------------------+
+                   Kerberos Principals - 'ktutil' @1641993212                   +
+--------------------------------------------------------------------------------+
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' @1641993212             +
+--------------------------------------------------------------------------------+
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' @1641993212         +
+--------------------------------------------------------------------------------+
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' @1641993212           +
+--------------------------------------------------------------------------------+
Domain Name     DNS Domain                                                       Trust Type  Transitive  In   Out  
BUILTIN                                                                          Local
TRUENAS                                                                          Local
debug finished in 0 seconds for Active Directory trusted domains - 'wbinfo -m'


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


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


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


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


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


+--------------------------------------------------------------------------------+
+      Active Directory DC info - 'wbinfo --dc-info=WORKGROUP' @1641993213       +
+--------------------------------------------------------------------------------+
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' @1641993213                +
+--------------------------------------------------------------------------------+
Error looking up domain users
+--------------------------------------------------------------------------------+
+               Active Directory Groups - 'wbinfo -g' @1641993213                +
+--------------------------------------------------------------------------------+
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 @1641993213                      +
+--------------------------------------------------------------------------------+
[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.9/site-packages/middlewared/main.py", line 138, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1213, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 975, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py", line 1082, in get_spn_list
    raise CallError(
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 1 seconds for Active Directory SPN list


+--------------------------------------------------------------------------------+
+                           idmap settings @1641993214                           +
+--------------------------------------------------------------------------------+
[
  {
    "id": 1,
    "name": "DS_TYPE_ACTIVEDIRECTORY",
    "dns_domain_name": null,
    "range_low": 100000001,
    "range_high": 200000000,
    "idmap_backend": "RID",
    "options": {},
    "certificate": null
  },
  {
    "id": 2,
    "name": "DS_TYPE_LDAP",
    "dns_domain_name": null,
    "range_low": 10000,
    "range_high": 90000000,
    "idmap_backend": "LDAP",
    "options": {
      "ldap_base_dn": "",
      "ldap_user_dn": "",
      "ldap_url": "",
      "ssl": "OFF"
    },
    "certificate": null
  },
  {
    "id": 5,
    "name": "DS_TYPE_DEFAULT_DOMAIN",
    "dns_domain_name": null,
    "range_low": 90000001,
    "range_high": 100000000,
    "idmap_backend": "TDB",
    "options": {},
    "certificate": null
  }
]
debug finished in 0 seconds for idmap settings


