[Samba] Offline login doesn't work with smbclient (NT_STATUS_NO_LOGON_SERVERS)

Maverick mvrk at sapo.pt
Mon Apr 27 21:47:32 UTC 2020


I have a samba4 AD setup with 2 DCs and one samba4 server with fileshares.

If both my DCs are offline i can't login to any of the shares on the
samba4 fileshare server with smbclient, but wbinfo -K works fine and
ntlm_auth also works fine with offline cached credentials.

 san  root  ~  smbcontrol winbind offline
  san  root  ~  smbcontrol winbind onlinestatus
PID 292952: global:Offline BUILTIN:Online SAN:Online MYDOM:Offline

  san  root  ~  wbinfo -K MYDOM\\testuser
Enter MYDOM\testuser's password:
plaintext kerberos password authentication for [MYDOM\testuser]
succeeded (requesting cctype: FILE)
credentials were put in: FILE:/tmp/krb5cc_0

  san  root  ~  ntlm_auth --request-nt-key --domain=MYDOM
--username=testuser --password=xxxxxxxx --offline-logon
NT_STATUS_OK: The operation completed successfully. (0x0)

  ghost  root  ~  smbclient //san/bck -UMYDOM\\testuser
Enter MYDOM\testuser's password:
session setup failed: NT_STATUS_NO_LOGON_SERVERS

Anyone has any idea what could be the problem?

More information about the samba mailing list