[global]
workgroup = DOMAIN
security = domain
password server = AD
wins server = AD
local master = no
domain master = no
preferred master = no
encrypt passwords = true
dns proxy = no
allow trusted domain = no
idmap backend = rid:DOMAIN=15000-20000
idmap uid = 15000-20000
idmap gid = 15000-20000
# winbind separator = +
winbind uid = 15000-20000
winbind gid = 15000-20000
winbind cache time = 15
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = yes
name resolve order = wins lmhosts host bcast
passwd: compat winbind group: compat winbind shadow: compat
account sufficient pam_winbind.so account required pam_unix.so
auth sufficient pam_winbind.so auth sufficient pam_unix.so nullok_secure use_first_pass auth required pam_deny.so
session required pam_unix.so session required pam_mkhomedir.so umask=0022 skel=/etc/skel
You will need to join the domain to authenticate.
sudo net -u <adusername> join
/etc/init.d/samba restart /etc/init.d/winbind restart
You will need to do this as a root account, and make sure you are not logged in.
deluser <username>
chown -R <username>:users /home/<username>