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
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=""
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs