Ok, details. This is going to take up some space.
I've tried a couple of things so I will tell you each.
First I followed the instructions in man winbindd.
This is what I put in the /etc/nsswitch.conf file:
passwd: files nisplus nis winbind
shadow: files nisplus nis
group: files nisplus nis winbind
hosts: files nisplus nis dns
These were the active lines in my smb.conf file:
[global]
workgroup = "MY DOMAIN's NAME"
netbios name = <name_of_this_server>
server string = Samba Server %v
printcap name = cups
load printers = yes
printing = cups
printer admin = @"Domain Admins"
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
security = domain
password server = *
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind separator = +
template homedir = /home/%D/%U
template shell = /bin/bash
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes
[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP doc_name &
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &
Then I replaced the auth and account lines in all of the files in /etc/pam.d with the following lines:
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_nologin.so
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_pwdb.so use_first_pass shadow nullok
account required /lib/security/pam_winbind.so
Then I joined the domain using the following command:
smbpasswd -j DOMAIN -r PDC -U Administrator
(This part at least worked because I found the Linux box in the PDC.)
Then it locked me out! So, I reinstalled Mandrake 9.1.
I don't want to take up anymore room on the post, so please see the instructions at
http://www.mandrakeuser.org/docs/connect/csamba5.html . I followed the instructions to the letter. I got the computer on the domain but could not get any domain info with the wbinfo command.