All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Costello <matthew@ottix.com>
To: Sascha Frey <sfrey@acs-software.de>
Cc: autofs@linux.kernel.org
Subject: Re: autofs5: multiple entries with wildcards
Date: Wed, 14 Mar 2007 23:27:21 -0700	[thread overview]
Message-ID: <1173940041.22645.3.camel@donner.ottix.com> (raw)
In-Reply-To: <1173919596.12589.1.camel@prometheus.workstation.sash-bielefeld.net>

On Thu, 2007-03-15 at 01:46 +0100, Sascha Frey wrote:
> ...
> This is what I want, but without NIS.
> I'm testing now with local map files, but I want to store the maps in my
> LDAP directory.

I don't know if this is what you want, but this is the meat of the shell
script I used to create the /etc/auto.home map from LDAP.  Home
directories in my environment don't change all that often so creating a
static map from the LDAP information gives slightly more speed and
higher reliability.

ldapsearch -x -s sub -S cn nisMapName=auto.home cn nisMapEntry | \
sed -e "s/`uname -n`:/:/" | \
awk '$1 == "cn:" { cn=$2 }
$1 == "nisMapEntry:" { printf "%-10s %s,rsize=8192,wsize=8192 %s\n", cn,
$2,$3 }' >> $tmpfile

  parent reply	other threads:[~2007-03-15  6:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 21:20 autofs5: multiple entries with wildcards Sascha Frey
2007-03-14 21:42 ` jmoyer
2007-03-15  0:46   ` Sascha Frey
2007-03-15  3:15     ` Ian Kent
2007-03-15  3:20     ` Ian Kent
2007-03-15  6:27     ` Matthew Costello [this message]
2007-03-15 16:39 ` Jim Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1173940041.22645.3.camel@donner.ottix.com \
    --to=matthew@ottix.com \
    --cc=autofs@linux.kernel.org \
    --cc=sfrey@acs-software.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.