From owner-freebsd-bugs@FreeBSD.ORG Wed Jan 17 12:10:18 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 80D9016A407 for ; Wed, 17 Jan 2007 12:10:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 37D6713C465 for ; Wed, 17 Jan 2007 12:10:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l0HCAI9e093843 for ; Wed, 17 Jan 2007 12:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l0HCAI0V093842; Wed, 17 Jan 2007 12:10:18 GMT (envelope-from gnats) Resent-Date: Wed, 17 Jan 2007 12:10:18 GMT Resent-Message-Id: <200701171210.l0HCAI0V093842@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gerrit Kühn Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7793016A4AB for ; Wed, 17 Jan 2007 12:03:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 66AB813C4C7 for ; Wed, 17 Jan 2007 12:03:32 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0HC3Wlq070281 for ; Wed, 17 Jan 2007 12:03:32 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l0HC3WDS070280; Wed, 17 Jan 2007 12:03:32 GMT (envelope-from nobody) Message-Id: <200701171203.l0HC3WDS070280@www.freebsd.org> Date: Wed, 17 Jan 2007 12:03:32 GMT From: Gerrit Kühn To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/108033: ls coredumps when nss/ldap is misconfigured X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 12:10:18 -0000 >Number: 108033 >Category: misc >Synopsis: ls coredumps when nss/ldap is misconfigured >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 17 12:10:17 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Gerrit Kühn >Release: 7.0 >Organization: Universität Hannover >Environment: FreeBSD eclipse.aei.uni-hannover.de 7.0-CURRENT FreeBSD 7.0-CURRENT #4: Thu Dec 21 15:28:56 CET 2006 root@eclipse.aei.uni-hannover.de:/usr/obj/usr/src/sys/ECLIPSE i386 >Description: After reading (and mixing up :-) various hints I found on the web for setting up ldap, pam_ldap and nss_ldap, I ended up with a softlink from ldap.conf pointing to nss_ldap.conf and mode 600 for this file. This causes ls to coredump as soon as any uid/gid are processed: [I have no name!@eclipse ~]$ ls -l Assertion failed: (cfg->ldc_uris[__session.ls_current_uri] != NULL), function do_init, file ldap-nss.c, line 1312. Abort trap: 6 (core dumped) >How-To-Repeat: Make nss_ldap.conf unreadable for the user and try to list anything with ldap uid/gid (using ls -la or similar). >Fix: The obvious solution is to make nss_ldap readable. However, imho ls should not coredump in this situation. This may also be a problem of net/nss_ldap. >Release-Note: >Audit-Trail: >Unformatted: