Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba & pam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
apanjocko
n00b
n00b


Joined: 19 Mar 2005
Posts: 16

PostPosted: Sun Jul 03, 2005 8:49 pm    Post subject: samba & pam Reply with quote

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.
Back to top
View user's profile Send private message
apanjocko
n00b
n00b


Joined: 19 Mar 2005
Posts: 16

PostPosted: Thu Jul 07, 2005 3:46 pm    Post subject: Reply with quote

Anyone knows about this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum