From owner-freebsd-questions@FreeBSD.ORG Fri May 8 21:08:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D62A1065670 for ; Fri, 8 May 2009 21:08:09 +0000 (UTC) (envelope-from prvs=37206e029=pschmehl_lists@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id 1337D8FC1A for ; Fri, 8 May 2009 21:08:08 +0000 (UTC) (envelope-from prvs=37206e029=pschmehl_lists@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.40,319,1238994000"; d="scan'208";a="11642303" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 08 May 2009 16:08:08 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id F11758D34; Fri, 8 May 2009 16:08:07 -0500 (CDT) Date: Fri, 08 May 2009 21:08:08 +0000 From: Paul Schmehl To: Christopher Sean Hilton , freebsd-questions@freebsd.org Message-ID: In-Reply-To: References: <20090507035523.GA6073@lpthe.jussieu.fr> <970380130905072016gecc607cr1e5401d8e396366b@mail.gmail.com> <115CE74FFEDF152EA4EFA58F@utd65257.utdallas.edu> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: Autofs howto X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2009 21:08:09 -0000 --On Friday, May 08, 2009 14:56:34 -0500 Christopher Sean Hilton wrote: > > In the map files you'll need to make sure that the rfs entry matches > the directory tree that foobar.utdallas.edu is exporting. e.g. if you > would manually mount the directory under FreeBSD like this: > > # mount_nfs -o tcp,intr,nodev,nosuid foobar.utdallas.edu:/home/ > pschmehl /home/pschmehl > I can mount my homedir this way: # mount_nfs foobar.utdallas.edu:/home/003/p/pa/pauls /mnt/unix_home I assume this means that this should work: rfs:=/home/003/p/pa/${key} And then I cd to /Home/pauls (there's a section in my amd.conf file named [/Home] that has a corresponding map file amd.home which contains the syntax for mapping the drive. # cat /etc/amd.conf | grep -A3 Home [/Home] map_type =nfs map_name =amd.home mount_type =autofs # cat /etc/amd.home /defaults type:=nfs;opts:=tcp,intr,nodev,nosuid,umount,vers=3 \ rhost:olympus.utdallas.edu;rfs:=/home/003/p/pa/${key} * fs=${autodir}/${key} But that fails with a directory does not exist error. But I can already map my home drive manually. What I'm trying to figure out is how to use our ldap server to mount my home drive so that when/if it gets moved again (which happens occasionally) it will still mount and not break. The Linux construction is: ldap //rhost/nismapname=auto_home,ldap_base,nfsvers=3,proto=tcp. I can't for the life of me figure out how to get from that syntax to the amd syntax. But since I can't even automount my home using what I thought was the right syntax for amd, I guess I need to figure that out first. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* Check the headers before clicking on Reply.