From owner-freebsd-questions Fri Mar 2 17:11:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tahoe.gallantry.com (adsl-63-201-132-253.dsl.snfc21.pacbell.net [63.201.132.253]) by hub.freebsd.org (Postfix) with ESMTP id 064A937B71B for ; Fri, 2 Mar 2001 17:11:38 -0800 (PST) (envelope-from maillist@Gallantry.com) Received: from Gallantry.com (c-10-0-0-112.gwclients.gallantry.com [10.0.0.112]) by tahoe.gallantry.com (8.9.3/8.9.3) with ESMTP id RAA66660; Fri, 2 Mar 2001 17:11:22 -0800 (PST) (envelope-from maillist@Gallantry.com) Message-ID: <3AA044BA.6F1AB33E@Gallantry.com> Date: Fri, 02 Mar 2001 17:11:22 -0800 From: Jason Liao Organization: Gallantry Technologies, Inc. X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Sold Cc: igorr@crosswinds.net, Christoph Sold , questions@FreeBSD.ORG Subject: Re: Samba and NIS References: <20010302094032.A5369@linux.rainbow> <3A9FA0DF.AD106559@i-clue.de> <20010302164117.A8178@linux.rainbow> <3A9FA662.FF3761A8@i-clue.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If your workstations are Windows 98/2000, or NT 4 with service pack 3 and above, Samba needs to use the encrypted password authentication. In this case, Samba maintains its own password file. However, you can change the Windows registry to force the workstations to use plain text password. This way it probably will work with NIS. I have never done that though. Jason Christoph Sold wrote: > > Igor Robul schrieb: > > > > On Fri, Mar 02, 2001 at 02:32:15PM +0100, Christoph Sold wrote: > > > > > > > > > Igor Robul schrieb: > > > > > > > > Hello, > > > > > > > > Had anybody tried use Samba with NIS authentification on FreeBSD? > > > > > > Although I use both NIS client and Samba server on the same machine, I > > > still have my Samba clients to authenticate against a NT 4 domain. > > > > > > AFAIR, Samba uses its own passwd file, so you have to define either > > > another NIS map manually, or just NFS-mount the directory containing the > > > smbpasswd file. > > I just wish to tell Samba use Unix password, so I don't need maintain > > two password bases. Also, I don't have NT servers on network. > > I know that Samba can be authentificated against NIS+ or LDAP. > > > > >From man smb.conf: > > NOTE ABOUT USERNAME/PASSWORD VALIDATION > There are a number of ways in which a user can connect to > a service. The server follows the following steps in > determining if it will allow a connection to a specified > service. If all the steps fail then the connection request > is rejected. If one of the steps pass then the following > steps are not checked. > > If the service is marked "guest only = yes" then steps 1 > to 5 are skipped. > > 1. Step 1: If the client has passed a username/pass- > # word pair and that username/password pair is vali- > # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > # dated by the UNIX system's password programs then > # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > the connection is made as that username. Note that > this includes the \\server\service%username method > of passing a username. > > Note the sentence above. This means, if _any_ password mechanism can > validate the username/passwd pair, the user will be able to access. Just > add a user account to your unix box. > > HTH > -Christoph Sold > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message