I've been following: https://wiki.samba.org/index.php/Samba4/Winbind but getent passwd dosn't show domain users, and I cannot login with domain users. The rest of the test commands are OK.
I had to do the following:
Install: libpam0g-dev with:
and then recompile and reinstall samba 4 from source.
in stead of the winbind 4 wiki:
In stead of the wiki:
In /etc/pam.d/common-session i only put:
in the beginning of the file. (Following the wiki on this file I got locked out also for local root user)