From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 26 14:50:20 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFC4E16A4CE for ; Fri, 26 Mar 2004 14:50:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9030243D48 for ; Fri, 26 Mar 2004 14:50:20 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2QMoKbv088557 for ; Fri, 26 Mar 2004 14:50:20 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2QMoK6h088556; Fri, 26 Mar 2004 14:50:20 -0800 (PST) (envelope-from gnats) Resent-Date: Fri, 26 Mar 2004 14:50:20 -0800 (PST) Resent-Message-Id: <200403262250.i2QMoK6h088556@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, "Antoine Jacoutot" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E72D116A4CE for ; Fri, 26 Mar 2004 14:48:43 -0800 (PST) Received: from mcp.lphp.org (APastourelles-107-1-13-107.w80-11.abo.wanadoo.fr [80.11.65.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6B1043D1D for ; Fri, 26 Mar 2004 14:48:42 -0800 (PST) (envelope-from ajacoutot@lphp.org) Received: from bsdbox.lphp.local (bsdbox.lphp.local [192.168.0.2]) by mcp.lphp.org (8.12.10/8.12.10) with ESMTP id i2QMmf7r006771 for ; Fri, 26 Mar 2004 23:48:41 +0100 (CET) (envelope-from ajacoutot@lphp.org) Message-Id: <1080341321.0@bsdbox.lphp.local> Date: Fri, 26 Mar 2004 23:48:41 +0100 From: "Antoine Jacoutot" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.3.3 Subject: kern/64788: nsswitch with ldap and starting ppp on boot gives errors X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 22:50:20 -0000 >Number: 64788 >Category: kern >Synopsis: nsswitch with ldap and starting ppp on boot gives errors >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: Fri Mar 26 14:50:20 PST 2004 >Closed-Date: >Last-Modified: >Originator: Antoine Jacoutot >Release: FreeBSD 5.2.1-RELEASE-p3 i386 >Organization: NONE >Environment: System: FreeBSD 5.2.1-RELEASE-p3 #0: Thu Mar 18 16:40:16 CET 2004 root@bsdbox.lphp.local:/usr/obj/usr/src/sys/BSDBOX >Description: When using ldap as an authentication mechanism (pam_ldap) and nss_ldap for user info, starting ppp automatically on boot gives the following error: kernel su: NSSWITCH(nss_method_lookup): ldap, group, setgrent, not found kernel su: NSSWITCH(nss_method_lookup): ldap, group, getgrent_r, not found kernel su: NSSWITCH(nss_method_lookup): ldap, group, endgrent, not found This is due to the fact that /etc/rc.d/ppp-user launches the following command: su -m ${ppp_user} -c "exec ${ppp_command}" And at this time, the ldap server is not started yet which means nsswitch cannot access it (for "su" infos). Note that it does not avoid the connexion to be established (if ppp-user is root), so this might be more a cosmetic fix than a real problem, but I still it should be fixed though. >How-To-Repeat: Install and configure pam_ldap and nss_ldap for authentication and start ppp on boot (in rc.conf). >Fix: Make sure the ldap server (slapd) is started BEFORE ppp. >Release-Note: >Audit-Trail: >Unformatted: