Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba-authentication agains /etc/shadow?
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
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Wed Jan 04, 2006 6:53 pm    Post subject: samba-authentication agains /etc/shadow? Reply with quote

hi,

i'm trying to get samba to authenticate against the shell-accounts, but no matter what i try (in /etc/pam.d/samba) it won't work.
Clients are WindowsXP-Machines.

Can someone please kick me into the right direction?

thx!
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
arkepp
n00b
n00b


Joined: 23 Jul 2002
Posts: 74
Location: NYC / USA (or Norway)

PostPosted: Wed Jan 04, 2006 10:15 pm    Post subject: Reply with quote

Doesn't work, unfortunately.

You could let both Samba and PAM authenticate against MySQL or LDAP, the latter of which is certainly the more common approach.

I recommend people with less than 20 users to maintain smbpasswd and /etc/shadow separately, or through scripts that run both at the same time. LDAP is great, but difficult to maintain when new versions of OpenLDAP and Samba arrive.

If you still want to do it, have a look here:
http://gentoo-wiki.com/HOWTO_LDAP_SAMBA_PDC

The neat thing is that all sorts of things, including applications, can authenticate against LDAP.
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Thu Jan 05, 2006 12:09 pm    Post subject: Reply with quote

hi,

thx for the tip, but openldap was my first try. So i tried setting it up, after lots of trouble (following different howto's on *.gentoo.org) i got it running, but samba just wouldn't authenticate the windows-clients. So i'm now trying pam, and already have gotten proftpd, cyrus and apache2 to athenticate against pam.

The only thing missing is samba. In the meantime i found out it is possible to synchronize the samba-passwords when runnung 'passwd', but couldn't find anything that worked. I'll post back if i can come up with sth.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 656
Location: Bonn

PostPosted: Sat Jan 07, 2006 6:43 pm    Post subject: Reply with quote

ok, after some trouble i', thinking again about setting up ldap...

But how do i get the samba-passwords = /etc/shadow ? As far as i looked into it, that howto creates different fieds for sambaLMpassword,sambaNTpasswd and userpasswd ?
How do i get only 1 password for all?
_________________
--
Linux & such ...
http://blog.hasnoname.de
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