Samba PDC & /etc/passwd

Eric Anderson anderson at centtech.com
Tue Oct 23 06:04:02 GMT 2001


Ok.. Well, basically, here's what I have, and what I want:
I have a PDC (windows NT) currently, with Exchange running on it.  I also have mostly unix/linux machines running NIS.  

I would like to have an Exchange server box (on Win2k), that gets all authentication information from a Samba box
(linux) that ties in with the NIS passwd files.  I don't really need a PDC I suppose, but I would like to be able to
have Exchange users from the NIS database.  Is this at all possible?

Eric



eirvine wrote:
> 
> No.
> 
> Samba must use encrypted passwords (in the smbpasswd file) to be a PDC.
> To use passwords in NIS, it must use plain text passwords. Plaintext as
> in that is how the client sends the password across the wire.
> 
> So - to be a PDC, you've gotta set up smbpasswd. And you have to have
> machine names in /etc/passwd (or nis).
> 
> Eddie.
> 
> Eric Anderson wrote:
> >
> > Ok, I have seen a bunch of posts on similar subjects, but I'm just not putting the pieces together.. I have Samba 2.2.2
> > (on RedHat 6.2 - from their RPM), and a Windows 2k box (Advanced server).  Everything works great, but samba wants me to
> > use the smbpasswd file for authentication, and I would like to use the /etc/passwd stuffs to do the authentication - I'm
> > using NIS, so this is important.  Whats the smb.conf trick to basically say "use /etc/passwd instead of smbpasswd"?
> >
> > Just for the heck of it, here is one what person said a while back:
> >
> > ---- Quoted from Aaron Sheard ----
> > The way it works with me is as long as you have a +::0:0::: as the last line in
> > your /etc/passwd file, samba will authenticate to the NIS master.
> >
> > If you can log on directly to the unix box through NIS, samba should work fine
> > without any modifications.
> >
> > In my smb.conf file this is all I have for [global] variables and it works fine
> > with NIS.
> > (this is running on hpux 10.20)
> >
> > [global]
> > passwd program = /usr/bin/passwd %u
> > server string = unixbox
> > workgroup = office
> > passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
> > *passwd:*all*authentication*tokens*updated*successfully*
> > netbios name = unixbox
> > socket address = 10.10.1.2
> > ---- -----
> >
> > Thanks in advance!
> > Eric
> >
> > --
> > -------------------------------------------------------------
> > Eric Anderson    anderson at centtech.com    Centaur Technology
> > # rm -rf  /bin/laden
> > -------------------------------------------------------------

-- 
-------------------------------------------------------------
Eric Anderson	 anderson at centtech.com    Centaur Technology
# rm -rf  /bin/laden
-------------------------------------------------------------




More information about the samba-ntdom mailing list