From: Jeff Bastian <jmbastia@ti.com>
To: autofs@linux.kernel.org
Subject: LDAPAUTOMASTER patch
Date: Fri, 31 Mar 2006 12:23:19 -0600 [thread overview]
Message-ID: <442D7397.6030909@ti.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 556 bytes --]
The /usr/lib/autofs/autofs-ldap-auto-master provides a number of command
line options to help the program find your auto.master map if it's not
in the default location on your LDAP servers, however, the
/etc/rc.d/init.d/autofs script does not have any mechanism to pass in
these command line options.
Attached is a patch (derived from Fedora Core 5's autofs-4.1.4-16.2.2
package) that adds an $LDAPAUTOMASTER variable to the
/etc/sysconfig/autofs file and the same variable to the
autofs-ldap-auto-master command in the init script.
Jeff Bastian
[-- Attachment #2: autofs-fc5-ldap.patch --]
[-- Type: text/plain, Size: 1205 bytes --]
diff -urN autofs-4.1.4-16.2.2/etc/rc.d/init.d/autofs autofs-4.1.4-16.2.2.patch/etc/rc.d/init.d/autofs
--- autofs-4.1.4-16.2.2/etc/rc.d/init.d/autofs 2006-03-31 11:10:51.000000000 -0600
+++ autofs-4.1.4-16.2.2.patch/etc/rc.d/init.d/autofs 2006-03-31 11:15:33.000000000 -0600
@@ -85,6 +85,7 @@
DISABLE_DIRECT=1
DAEMON_EXIT_WAIT=20
ONE_AUTO_MASTER=0
+ LDAPAUTOMASTER=""
[ -f /etc/sysconfig/autofs ] && . /etc/sysconfig/autofs
@@ -165,7 +166,7 @@
function getldapmounts()
{
if [ -x /usr/lib/autofs/autofs-ldap-auto-master ]; then
- /usr/lib/autofs/autofs-ldap-auto-master 2> /dev/null
+ /usr/lib/autofs/autofs-ldap-auto-master $LDAPAUTOMASTER 2> /dev/null
fi
}
diff -urN autofs-4.1.4-16.2.2/etc/sysconfig/autofs autofs-4.1.4-16.2.2.patch/etc/sysconfig/autofs
--- autofs-4.1.4-16.2.2/etc/sysconfig/autofs 2006-03-31 11:10:51.000000000 -0600
+++ autofs-4.1.4-16.2.2.patch/etc/sysconfig/autofs 2006-03-31 11:13:29.000000000 -0600
@@ -19,3 +19,7 @@
# this value.
DAEMON_EXIT_WAIT=10
+# LDAPAUTOMASTER contains command line arguments for the
+# /usr/lib/autofs/autofs-ldap-auto-master program
+# Run the program with --help to see available options
+LDAPAUTOMASTER=""
[-- Attachment #3: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
reply other threads:[~2006-03-31 18:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=442D7397.6030909@ti.com \
--to=jmbastia@ti.com \
--cc=autofs@linux.kernel.org \
/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.