Requested logs.
The failed first authentication is on Apr 21 11:05:28, immediatly after the second attempt succeeds.
Before I logged in with the domain account I checked that networking of the machine worked:
wbinfo -P and wbinfo -p both showed online, wbinfo -u displayed every user.
The DC is a Ubuntu 16.04 samba active directory. In a similar setup where I have the same problem I use a "18.04" ubuntu samba dc, but lets stay with this machine since I can reproduce the problem very reliably and the machine reboots quickly.
/etc/nsswitch has the following setup:
passwd: compat winbind systemd
group: compat winbind systemd
shadow: compat
gshadow: files
hosts: files resolve dns mdns_minimal
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
Requested logs.
The failed first authentication is on Apr 21 11:05:28, immediatly after the second attempt succeeds.
Before I logged in with the domain account I checked that networking of the machine worked:
wbinfo -P and wbinfo -p both showed online, wbinfo -u displayed every user.
The DC is a Ubuntu 16.04 samba active directory. In a similar setup where I have the same problem I use a "18.04" ubuntu samba dc, but lets stay with this machine since I can reproduce the problem very reliably and the machine reboots quickly.
/etc/nsswitch has the following setup:
passwd: compat winbind systemd
group: compat winbind systemd
shadow: compat
gshadow: files
hosts: files resolve dns mdns_minimal
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis