From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 9 07:50:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D61616A403 for ; Tue, 9 Jan 2007 07:50:05 +0000 (UTC) (envelope-from SRS0=pr74Nt=GS=vvelox.net=v.velox@yourhostingaccount.com) Received: from mailout09.yourhostingaccount.com (mailout09.yourhostingaccount.com [65.254.253.72]) by mx1.freebsd.org (Postfix) with ESMTP id A7D0713C43E for ; Tue, 9 Jan 2007 07:50:05 +0000 (UTC) (envelope-from SRS0=pr74Nt=GS=vvelox.net=v.velox@yourhostingaccount.com) Received: from scan05.yourhostingaccount.com ([10.1.1.235] helo=scan05.yourhostingaccount.com) by mailout09.yourhostingaccount.com with esmtp (Exim) id 1H4BkB-0006l5-6q for freebsd-hackers@freebsd.org; Tue, 09 Jan 2007 02:50:03 -0500 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] ident=exim) by scan05.yourhostingaccount.com with spamscanlookuphost (Exim) id 1H4BkB-0000BR-1s for freebsd-hackers@freebsd.org; Tue, 09 Jan 2007 02:50:03 -0500 Received: from authsmtp09.yourhostingaccount.com ([10.1.18.9] helo=authsmtp09.yourhostingaccount.com) by scan05.yourhostingaccount.com with esmtp (Exim) id 1H4Bk9-0000BG-UX for freebsd-hackers@freebsd.org; Tue, 09 Jan 2007 02:50:02 -0500 Received: from [69.92.217.33] (helo=vixen42) by authsmtp09.yourhostingaccount.com with esmtpa (Exim) id 1H4Bk9-0002mQ-0K; Tue, 09 Jan 2007 02:50:01 -0500 Date: Tue, 9 Jan 2007 01:49:59 -0600 From: Vulpes Velox To: Danny Braniss Message-ID: <20070109014959.7a2d62a5@vixen42> In-Reply-To: References: <20070107190616.73dee7b0@vixen42> <45A1DE76.7000201@FreeBSD.org> <20070108185247.2b6e1f69@vixen42> X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.7; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EN-UserInfo: 0d1ca1697cdb7a831d4877828571b7ab:1570f0de6936c69fef9e164fffc541bc X-EN-AuthUser: vvelox2 Sender: Vulpes Velox Cc: freebsd-hackers@freebsd.org, Doug Barton Subject: Re: LDAP integration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 07:50:06 -0000 On Tue, 09 Jan 2007 09:22:31 +0200 Danny Braniss wrote: > > On Sun, 07 Jan 2007 22:02:30 -0800 > > Doug Barton wrote: > > > > > Vulpes Velox wrote: > > > > I was just wondering. How many people here have given lots of > > > > though about integrating FreeBSD configuration with LDAP. I've > > > > just begun looking at it a lot more and was curious as to what > > > > other people think in this area. > > > > > > It would be more useful to have this discussion if you defined > > > what you meant by "FreeBSD configuration" in more detail. You > > > might also want to search the archives first, there is a lot of > > > discussion about various proposals in this area, all of which > > > end up getting shot down because they don't offer sufficient > > > added value to justify the pain of the change. > > > > I mean exactly that. Initially I have begun looking at rc.conf as > > a logical starting point. > > > > Initially I think seeing a rc.d stuck right in right after > > NETWORKING would be very interesting to have. Right after > > NETWORKING is finished, a program is kicked off that updates a rc > > file that is then included after parsing rc.conf. > > > > I am currently wondering if any one else working on this, before I > > start digging to much into it. The only LDAP stuff I am finding > > on this list has been recently in regards to integration of a > > ldap nss module into the base system. > > i realy don't know what this has to do with LDAP, but in our > diskless environment, /etc/rc.initdiskless, has some coded added > that based on info from DHCP will build a 'personalized' rc.conf > (the DHCP info is loaded into kenv by boot). Cool. I will look into that a bit more. Thanks for the heads up on that. > ... > confpath=`kenv conf-path` > if [ -n "$confpath" ] ; then > if [ "`expr $confpath : '\(.*\):'`" ] ; then > echo Mounting $confpath on /conf > mount_nfs $confpath /conf > chkerr $? "mount_nfs $confpath /conf" > to_umount="${to_umount} $confpath" > fi > fi > ... > eval `kenv | sed -n 's/^rc\.//p'` > rm -f /etc/rc.conf /etc/rc.conf.local > for fc in $conf0 $conf1 $conf2 $conf3 $conf4 $conf5 $conf6 $conf7 > $conf8 $conf9 rc.conf.$hostname > do > ho=`expr $fc : '\(.*\):'` > fl=`expr $fc : '.*/\(.*\)'` > if [ "${ho}" != "" ]; then > mp=`expr $fc : '\(.*\)/.*'` > mount_nfs $mp /mnt > /dev/null 2>&1 > if [ -f /mnt/$fl ]; then > echo "# from $fc /mnt/$fl" >> /etc/rc.conf > cat /mnt/$fl >> /etc/rc.conf > fi > umount /mnt > /dev/null 2>&1 > elif [ -e /conf/$fc ] ; then > echo "# from /conf/$fc" >> /etc/rc.conf > cat /conf/$fc >> /etc/rc.conf > fi > done