From owner-freebsd-stable@FreeBSD.ORG Thu Mar 6 02:41:34 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32C33EBB for ; Thu, 6 Mar 2014 02:41:34 +0000 (UTC) Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E31A7EC0 for ; Thu, 6 Mar 2014 02:41:33 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id r5so2210262qcx.18 for ; Wed, 05 Mar 2014 18:41:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=zM1ssiaweukDwPGzaSiS+sf7nVmXmNrAxJdf+2q7A0w=; b=CjdkrGxAVDL8r2ojm9ct4eFzKxFnYcfofP/YSHpU3IMwLhPSAq6LPxiSqEu6eYUpkI PZd67SMLxGy7RftYvO1oBfljYONxEJDvsfQQFX7Yq3ga3s4ccOhKpU8CB3dfr370d518 KNAZ5WUokWTQyKG+xqiKSmUJ31JawS4UzZQkUwSOBOGPW9YInwCMZWHXNpGaRYSQ/qGH skKdDSVHVN2pfupESYk35BTNpZw9VR+lAMxgtPmGB3bCTQS6+banaDyFePsKZiN7cwoj IawZrvtIWbRQAhxY4Pe9iPIjoAe7Mp9qbhgWmAzxy4tUatWOftNLP378Mkyft2oQf/Ch zSOw== X-Gm-Message-State: ALoCoQky7W85bd5nKCgR8TV5jX9eecqfIpNXfVH6Oo90XCkJQnQSDMv80X/Y4nFObsi9AhomWZRn X-Received: by 10.224.137.66 with SMTP id v2mr110510qat.104.1394073687110; Wed, 05 Mar 2014 18:41:27 -0800 (PST) Received: from [97.243.218.135] (135.sub-97-243-218.myvzw.com. [97.243.218.135]) by mx.google.com with ESMTPSA id h46sm5842576qgd.10.2014.03.05.18.41.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 18:41:24 -0800 (PST) Subject: Re: NSS ldap errors References: <53174346.6070703@phat.za.net> From: Mark Saad Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (11B651) In-Reply-To: <53174346.6070703@phat.za.net> Message-Id: <2FA6FDB3-6F13-4C86-A9CD-EDD88EE072EA@longcount.org> Date: Wed, 5 Mar 2014 21:41:21 -0500 To: "freebsd-stable@freebsd.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 02:41:34 -0000 Looping the list back in . > On Mar 5, 2014, at 10:31 AM, Aragon Gouveia wrote: >=20 > Hi, >=20 > I'm trying to implement net/nss-pam-ldapd on 9.2-RELEASE, and hitting some= NSS issues. PAM authentication with SSH works fine, but there are a lot of= NSS errors in /var/log/debug.log: >=20 > Mar 4 17:15:00 cstor1 cron[68418]: NSSWITCH(_nsdispatch): ld= ap, passwd, getpwnam_r, not found, and no fallback provided > Mar 4 17:15:00 cstor1 cron[68418]: NSSWITCH(_nsdispatch): ld= ap, group, setgrent, not found, and no fallback provided > Mar 4 17:15:00 cstor1 cron[68418]: NSSWITCH(_nsdispatch): ld= ap, group, getgrent_r, not found, and no fallback provided > Mar 4 17:15:00 cstor1 cron[68418]: NSSWITCH(_nsdispatch): ld= ap, group, endgrent, not found, and no fallback provided > Mar 4 17:15:00 cstor1 cron[68418]: NSSWITCH(_nsdispatch): ld= ap, passwd, endpwent, not found, and no fallback provided > Mar 4 17:15:11 cstor1 -bash: NSSWITCH(_nsdispatch): ldap, pa= sswd, getpwuid_r, not found, and no fallback provided > Mar 4 17:15:11 cstor1 -bash: NSSWITCH(_nsdispatch): ldap, pa= sswd, endpwent, not found, and no fallback provided >=20 > And in the case of bash, it's unable to resolve the LDAP username, and the= resulting PS1 prompt shows: >=20 > [I have no name!@cstor1 ~]$ >=20 > The author of nss-pam-ldapd isn't sure what the problem is: >=20 > http://lists.arthurdejong.org/nss-pam-ldapd-users/2014/msg00044.html >=20 > FWIW, the same problems occur with net/nss_ldap. >=20 > Any NSS gurus who can help? >=20 >=20 > Thanks, > Aragon This is related to using bash-static as root's shell . As well as setting no= n root users login shell to bash-static . The "I have no name" user name issue and the the getpwuid* calls failing hav= e to do with the fact that bash-static can not load some library , but my me= mory is lost on the exact library and details . I wasted a bunch of time on t= his in 7.2-RELEASE and it took a while to debug this . Using a standard por= t of bash or any other shell resolved this for me .=20 Mark saad | mark.saad@longcount.org=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"