JasonRaycroft
07-08-2002, 03:36 PM
I have been trying to set up a linux file/print server to work with my existing network (NT4 and win2k machines). I would like the linux box to do authentication with our existing PDC (NT4). Right now, I can get lists of users and groups (that is, getent passwd and getent group return the correct lists) but am unable to connect to the linux box (both login and samba) using any of my NT accounts. Has anyone dealt with the problem before? What was the solution?
Thanks in advance,
Jason Raycroft
I am running Redhat 7.3, with the following configuration:
SMB.CONF - items in (parentheses) are replaced with actual names
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/07/05 14:12:15
# Global parameters
[global]
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind cache = 30
winbind separator = +
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%D/%U
template shell = /bin/bash
security = DOMAIN
workgroup = (my workgroup)
password server = (my server)
encrypt passwords = Yes
netbios name = (my linux box)
server string = Samba Server on Red Hat 7.3
obey pam restrictions = No
pam password change = No
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
unix password sync = YES
log file = /var/log/samba/%U.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 0
preferred master = False
local master = No
domain master = False
dns proxy = No
remote announce = 172.16.77.4
guest account = guest
hosts allow = 172.16.77.0/255.255.255.0 127.
printing = nt
map to guest = Bad User
[homes]
path = /home/%D/%U
valid users = %S
read only = No
create mask = 0777
directory mask = 0777
browseable = No
[public]
path = /home/public
valid users = %S
read only = No
create mask = 0777
browseable = Yes
[Project 1]
path = /projects/proj1
read only = no
create mask = 0777
browseable = yes
guest ok = no
valid users = @(NT-group1)
nsswitch
passwd: files winbind
shadow: files winbind
group: files winbind
#hosts: db files nisplus nis dns
hosts: files nisplus dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nisplus
rpc: files
services: files nisplus
netgroup: files nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
/etc/pam.d/samba
#%PAM-1.0
auth required /lib/security/pam_stack.so service=system auth
account required /lib/security/pam_stack.so service=system-auth
/etc/pam.d/login
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth sufficient /lib/security/pam_winbind.so
auth sufficient /lib/security/pam_unix.so use_first_pass
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account sufficient /lib/security/pam_winbind.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_console.so
Thanks in advance,
Jason Raycroft
I am running Redhat 7.3, with the following configuration:
SMB.CONF - items in (parentheses) are replaced with actual names
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/07/05 14:12:15
# Global parameters
[global]
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind cache = 30
winbind separator = +
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/%D/%U
template shell = /bin/bash
security = DOMAIN
workgroup = (my workgroup)
password server = (my server)
encrypt passwords = Yes
netbios name = (my linux box)
server string = Samba Server on Red Hat 7.3
obey pam restrictions = No
pam password change = No
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*
unix password sync = YES
log file = /var/log/samba/%U.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 0
preferred master = False
local master = No
domain master = False
dns proxy = No
remote announce = 172.16.77.4
guest account = guest
hosts allow = 172.16.77.0/255.255.255.0 127.
printing = nt
map to guest = Bad User
[homes]
path = /home/%D/%U
valid users = %S
read only = No
create mask = 0777
directory mask = 0777
browseable = No
[public]
path = /home/public
valid users = %S
read only = No
create mask = 0777
browseable = Yes
[Project 1]
path = /projects/proj1
read only = no
create mask = 0777
browseable = yes
guest ok = no
valid users = @(NT-group1)
nsswitch
passwd: files winbind
shadow: files winbind
group: files winbind
#hosts: db files nisplus nis dns
hosts: files nisplus dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files nisplus
rpc: files
services: files nisplus
netgroup: files nisplus
publickey: nisplus
automount: files nisplus
aliases: files nisplus
/etc/pam.d/samba
#%PAM-1.0
auth required /lib/security/pam_stack.so service=system auth
account required /lib/security/pam_stack.so service=system-auth
/etc/pam.d/login
#%PAM-1.0
auth required /lib/security/pam_securetty.so
auth sufficient /lib/security/pam_winbind.so
auth sufficient /lib/security/pam_unix.so use_first_pass
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account sufficient /lib/security/pam_winbind.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session optional /lib/security/pam_console.so