apanjocko n00b

Joined: 19 Mar 2005 Posts: 16
|
Posted: Sun Jul 03, 2005 8:49 pm Post subject: samba & pam |
|
|
Hi,
EDIT: just wanted to add that the goal is to completely use the passwd/shadow files and not at all use the smbpasswd file. i want ftp/samba/shell logins to all be from the same place.
i'm almost there (i think) getting samba and pam working together.
swat and samba are both using /etc/pam.d/samba. i can without any problem log in to swat using this in the file:
Code: | auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
|
however, samba doesn't cooperate in the same way. doing this does not work:
$ smbclient -L localhost -Uusername%password
session setup failed: NT_STATUS_LOGON_FAILURE
(nothing in the logs)
however, doing this works:
$ smbclient -L localhost -U%
(my shares shown)
for completion this is the smb.conf file, if it is any help:
Code: | # Samba config file created using SWAT
# from 192.168.0.2 (192.168.0.2)
# Date: 2005/07/04 00:15:18
# Global parameters
[global]
workgroup = HEMMA
netbios name = BRUTUS
server string = Brutus Samba
obey pam restrictions = Yes
pam password change = Yes
passwd chat =
os level = 65
preferred master = Yes
domain master = Yes
ldap ssl = no
[da_temp]
path = /raid/samba/da_temp
valid users = da, root
force user = nobody
force group = nogroup
read only = No
hosts allow = 192.168.1.10, 192.168.0.2
case sensitive = No
[shared_temp]
path = /raid/samba/shared_temp
read only = No
case sensitive = No
|
i would very much appreciate help. |
|