From owner-freebsd-stable@freebsd.org Wed Sep 21 17:31:26 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 D6E6CBE267F for ; Wed, 21 Sep 2016 17:31:26 +0000 (UTC) (envelope-from shashaness@hotmail.com) Received: from BLU004-OMC4S5.hotmail.com (blu004-omc4s5.hotmail.com [65.55.111.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 87AC968D for ; Wed, 21 Sep 2016 17:31:26 +0000 (UTC) (envelope-from shashaness@hotmail.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com ([65.55.111.137]) by BLU004-OMC4S5.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 21 Sep 2016 10:30:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LYg0XJ15mgwcAwEElOgR9Hn+LInlTwSWTwC4TZya+I4=; b=bX9Pfa2Ui/kqrZjL+CFV0oY2a4qgOQLha3RJWpO/oNFXvfJCc8MatRqQa0Ss9RzbNdTbq08hXpdkn+o9Vn28gt7J7U3kko2mYoqjMkuB54UmlCqFBxPBMYC9oQbIB47+WjL30G6yV7hbOhKaGxr/n4oWP+yZ++8re/+NmiF9BLv51Z7mDL/wacuRZR5sWP+MFD884cfJ1NRyTtfzgaSF/SNo716iS1OLGUZ1k/SH+D53Jfwdd+Jth7H8z50Qtn41f5qeDE5zLb6jwRNygxaDNrTtIATMnYCnXKrnnv8WMc95WFFkrI2tuG4sOkA6PkCmFNmktHfNW3eFwpuq4CM21A== Received: from BL2NAM02FT005.eop-nam02.prod.protection.outlook.com (10.152.76.54) by BL2NAM02HT174.eop-nam02.prod.protection.outlook.com (10.152.77.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5; Wed, 21 Sep 2016 17:30:14 +0000 Received: from CY1PR14MB0520.namprd14.prod.outlook.com (10.152.76.56) by BL2NAM02FT005.mail.protection.outlook.com (10.152.76.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5 via Frontend Transport; Wed, 21 Sep 2016 17:30:14 +0000 Received: from CY1PR14MB0520.namprd14.prod.outlook.com ([10.164.71.150]) by CY1PR14MB0520.namprd14.prod.outlook.com ([10.164.71.150]) with mapi id 15.01.0629.006; Wed, 21 Sep 2016 17:30:13 +0000 From: Shawn Bakhtiar To: "freebsd-stable@freebsd.org" Subject: Re: Problem with nsswitch.conf Thread-Topic: Problem with nsswitch.conf Thread-Index: AQHSFCylTHoBNWaZl0ySmezYDK7bEKCEMrIAgAAAjoA= Date: Wed, 21 Sep 2016 17:30:13 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=softfail (sender IP is 10.152.76.56) smtp.mailfrom=hotmail.com; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=fail action=none header.from=hotmail.com; received-spf: SoftFail (protection.outlook.com: domain of transitioning hotmail.com discourages use of 10.152.76.56 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; BL2NAM02HT174; 6:zJSge8CqdtBWqntJPCabh0RyQ2ZGUhl/bLhcTBSC5VTuZeIIGFKCokQR+qeDYg23qj+5CrR11gwDfet6oHrYDHi+uk+5kWyarzRPgtJ/JBRUFrzPjO+VNYYJlVbWnaAOXyLNbmYUz1sztDsOa1YuhC+enSyJop0AiE3OTVw8MexF6ugSaASc9xrAg/01z/iFLf6rnkkbk425EtPDRD+6k6BpYkDYcQ/mBvO92y1sCrDVhcoPPmHhrN8mQrSWRGVseqfPLmEF4+24jD/iA7wu+Ut4t7sSXm6aOuk/Jlb2tn0=; 5:XGrR6uG8QTA24qyFBw0hl6M+T13idU6+e0M901BN75w6D6Ee9z2oFS5cZ8YR1LYslF9qiIMx5Wh8OPaKNw5xZ0wCyCKA314GTmfZpXVJxDe/nFXiQkNGru0f4YU1O1iQuzAluvUvlx+FvPD6ICoQ2w==; 24:5T7NYPMbrqzZmIbIBI+gGV/v1cFH8Yeqo+QrvPGb/fc2B+sE9pfWIlxtpwz4WUqcdy7tcHLY3uqy24e/jsm59Yaj3AU7ziRY/cWYyVWZ0Lg=; 7:encGKLlEKBO8m32e/OgPMf+7pQQRsqTU+l+vdaw8nJRLGH/72lwtV1EuSrM9xmwoH9PZ633k5Xfqs7qqNvuoIyTUyXRZGW+/X28i7YnfVvhCelvkIE8aXBOfP2uFwOYkmVYn3Vm1FIKYLAwlM5IZ5qiOJnJyggjMOi0dChMdWoA+qeUMVgDhZmGX0h8KRnFzP0qlzVPp2sZb0Okd3THb80426V6yTCW9a3xn0U06XtkeAI99CCTZG3TCMzuWMgLZRPVj8nTFvTCyvfa9a7OTPi+ijRA6lAXpGst9hAbiBMUH5+hCIL5SQncQ3xH6Pz/s x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2NAM02HT174; H:CY1PR14MB0520.namprd14.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 20d950ab-4e29-4fb6-7e37-08d3e244f150 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1603103081)(1601125047); SRVR:BL2NAM02HT174; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:BL2NAM02HT174; BCL:0; PCL:0; RULEID:; SRVR:BL2NAM02HT174; x-forefront-prvs: 007271867D spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="Windows-1252" Content-ID: <6D3763515CB0FB479C77AF2ED96A1D06@namprd14.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2016 17:30:13.4718 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT174 X-OriginalArrivalTime: 21 Sep 2016 17:30:18.0778 (UTC) FILETIME=[D2ACA7A0:01D2142D] 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:31:26 -0000 Oh Jesus!!! Thank you.. that worked.. obviously... > On Sep 21, 2016, at 10:28 AM, Eric van Gyzen wrote= : >=20 > On 09/21/2016 12:21, Shawn Bakhtiar wrote: >> Good morning All, >>=20 >> I'm trying to configure my server as an LDAP client. I installed the nsl= cd service and it's working great. >>=20 >> My problem is when I issue the command getent passwd it only returns the= LDAP user not the local users.=20 >>=20 >> # >> # nsswitch.conf(5) - name service switch configuration file >> # $FreeBSD: releng/10.2/etc/nsswitch.conf 224765 2011-08-10 20:52:02Z do= ugb $ >> # >> group: file ldap >> group_compat: nis ldap >> hosts: files dns >> networks: files >> passwd: file ldap >> passwd_compat: nis ldap >> shells: files=20 >> services: files=20 >> services_compat: nis >> protocols: files=20 >> rpc: files >>=20 >>=20 >> When I change the above group and passwd setting back to compat (which w= as the default configuration) I get the local users but none of the ldap us= ers show up. In fact nslcd is not even called (i've checked by running it i= n debug mode). So how do I configure nsswitch to use both the local /etc/pa= sswd file and the ldap. I need this because without it services will not st= art. IE nslcd complains that nslcd is not a valid user when using the above= configuration. >=20 > It should be "files", plural. >=20 > Eric