I had a bit of trouble getting my Samba server to authenticate to an NT PDC, so here is how I did it1?.
root# /usr/local/samba/bin/smbpasswd -j DOMAIN -r PDC -U Administrator
[global? <...>
- separate domain and username with '+', like DOMAIN+username
winbind separator = +
- use uids from 10000 to 20000 for domain users
winbind uid = 10000-20000
- use gids from 10000 to 20000 for domain groups
winbind gid = 10000-20000
- allow enumeration of winbind users and groups
- might need to disable these next two for performance
- reasons on the winbindd host
winbind enum users = yes winbind enum groups = yes
- give winbind users a real shell (only needed if they have telnet/sshd/etc... access)
template homedir = /home/winnt/%D/%U template shell = /bin/bash
passwd: files winbind shadow: files group: files winbind
CEO+Administrator CEO+burdell CEO+Guest CEO+jt-ad CEO+krbtgt
1? With help from http://docs.biostat.wustl.edu/samba-2.2.8a/htmldocs/winbind.html.
2 pages link to SambaAsFileServer: