From owner-freebsd-current@FreeBSD.ORG Thu Apr 17 11:55:58 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E238837B401 for ; Thu, 17 Apr 2003 11:55:58 -0700 (PDT) Received: from mx.nsu.ru (mx.nsu.ru [212.192.164.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEC4043F85 for ; Thu, 17 Apr 2003 11:55:57 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from mail by mx.nsu.ru with drweb-scanned (Exim 3.35 #1 (Debian)) id 196EYR-0008Tw-00; Fri, 18 Apr 2003 01:56:15 +0700 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mx.nsu.ru with esmtp (Exim 3.35 #1 (Debian)) id 196EOX-0004Qu-00; Fri, 18 Apr 2003 01:46:01 +0700 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.9/8.12.9) with ESMTP id h3HIj1ud094687; Fri, 18 Apr 2003 01:45:02 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.9/8.12.9/Submit) id h3HIj1Cc094682; Fri, 18 Apr 2003 01:45:01 +0700 (NSS) Date: Fri, 18 Apr 2003 01:45:01 +0700 From: Max Khon To: John Polstra Message-ID: <20030418014500.B94094@iclub.nsu.ru> References: <20030417141133.GA4155@madman.celabo.org> <1050590195.76150.8.camel@owen1492.uf.corelab.com> <20030417144449.GA4530@madman.celabo.org> <200304171535.h3HFZEFs094589@strings.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200304171535.h3HFZEFs094589@strings.polstra.com>; from jdp@polstra.com on Thu, Apr 17, 2003 at 08:35:14AM -0700 X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.43 X-Envelope-To: jdp@polstra.com, current@freebsd.org X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.11.1.4 cc: current@freebsd.org Subject: Re: HEADS UP: new NSS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 18:55:59 -0000 hi, there! On Thu, Apr 17, 2003 at 08:35:14AM -0700, John Polstra wrote: > > > Out of curiosity, how do the staticly-linked binaries in /bin and /sbin > > > handle this since they can't dlopen anything? Do users handled by > > > dynamically-loaded NSS modules just show up as UIDs with no name in > > > /bin/ls? > > > > Yep. > > The following is a work-around: > > > > cd /usr/src/bin/ls > > make clean > > make NOSHARED=NO depend > > make NOSHARED=NO > > make NOSHARED=NO install > > You might want to look at how libpam handles this situation. In the > static case, all of the known modules are linked into it statically. > Then they are located and registered at runtime by means of a linker > set. statically linking pam_ldap to /bin/ls will be a nightmare :) we need either allow dlopen(3) to be used in statically linked programs or move to dynamically linked /. /fjoe