From owner-freebsd-stable@freebsd.org Wed Sep 21 17:28:11 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3F25BE226B for ; Wed, 21 Sep 2016 17:28:11 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [IPv6:2607:fc50:1000:7400:216:3eff:fe72:314f]) by mx1.freebsd.org (Postfix) with ESMTP id 8F48314D for ; Wed, 21 Sep 2016 17:28:11 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from sweettea.beer.town (unknown [76.164.8.130]) by smtp.vangyzen.net (Postfix) with ESMTPSA id E464256495; Wed, 21 Sep 2016 12:28:10 -0500 (CDT) Subject: Re: Problem with nsswitch.conf To: Shawn Bakhtiar , "freebsd-stable@freebsd.org" References: From: Eric van Gyzen Message-ID: Date: Wed, 21 Sep 2016 12:28:10 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Sep 2016 17:28:11 -0000 On 09/21/2016 12:21, Shawn Bakhtiar wrote: > Good morning All, > > I'm trying to configure my server as an LDAP client. I installed the nslcd service and it's working great. > > My problem is when I issue the command getent passwd it only returns the LDAP user not the local users. > > # > # nsswitch.conf(5) - name service switch configuration file > # $FreeBSD: releng/10.2/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z dougb $ > # > group: file ldap > group_compat: nis ldap > hosts: files dns > networks: files > passwd: file ldap > passwd_compat: nis ldap > shells: files > services: files > services_compat: nis > protocols: files > rpc: files > > > When I change the above group and passwd setting back to compat (which was the default configuration) I get the local users but none of the ldap users show up. In fact nslcd is not even called (i've checked by running it in debug mode). So how do I configure nsswitch to use both the local /etc/passwd file and the ldap. I need this because without it services will not start. IE nslcd complains that nslcd is not a valid user when using the above configuration. It should be "files", plural. Eric