From: wsnyder@wsnyder.org (Wilson Snyder) Subject: HOST expansion with autofs+LDAP Date: Tue, 12 May 2009 11:45:29 -0400 (EDT) Message-ID: <20090512154529.9FC3313ED0@wsnyder.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org I have a suse10.3 system which includes autofs-5.0.2-30.2 I'd like an LDAP entry that makes an autofs mountpoint that includes the local host's name. If this wasn't under LDAP I believe "/net/$HOST" would work - creating a "/net/{name-of-hostname}" mountpoint. However, if I add a mountpoint with cn=$HOST cn=$HOST,nismapname=auto.net,dc=company,dc=com The automounter nicely makes a "/net/$HOST" mount - *literally* /net/$HOST, that is it doesn't expand $HOST to the hostname. Same thing if I use cn=${host} Any hints? Thanks!