Linux machine is in a windows domain, but domain logon isn't working

Solution 1:

Try changing in your smb.conf:

idmap backend = ad

for:

idmap backend = rid

And restart your samba services (winbind mainly). If it still doesn't work, try this:

  1. Stop samba services
  2. Delete samba database and cache files (usually under /var/lib/samba, tdb files).
  3. Run net ads join again
  4. Start samba services

Which samba version are you using?