* LDAPAUTOMASTER patch
@ 2006-03-31 18:23 Jeff Bastian
0 siblings, 0 replies; only message in thread
From: Jeff Bastian @ 2006-03-31 18:23 UTC (permalink / raw)
To: autofs
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-31 18:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31 18:23 LDAPAUTOMASTER patch Jeff Bastian
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.