Three patches: ldap1.diff This is a patch against the file autofs-3.1.7/daemon/Makefile and adds the correct LDAP libraries that the automount daemon must be linked against in order to use LDAP. This can go in the /usr/portage/net-fs/autofs/files directory. ldap2.diff This is a patch against autofs-3.1.7/configure.in and fixes the LDAP detection stuff, and adds -lresolv to the LDAP requred libs. This can go in the /usr/portage/net-fs/autofs/files directory. ldap3.diff This is a patch against the autofs-3.1.7-r4 ebuild. It applies the above patches, and additionally calls autoconf to apply the changes in configure.in (ldap2.diff above). It also removes the fixes that set the LIBLDAP and HAVE_LDAP evironment variables, as these are now set correctly by configure[.in].
Created attachment 5504 [details, diff] Patch to add the LIBLDAP variable to automount LDLIBS
Created attachment 5505 [details, diff] Patch to fix configure.in to do ldap detection correctly
Created attachment 5506 [details, diff] Patch to autofs ebuild to implement previous 2 patches
Created attachment 5509 [details] new autofs initscript This is a combination of the Gentoo and RedHat autofs initscripts. Basically, it makes autofs aware of the automount setting in /etc/nsswitch.conf, and adds LDAP automount map capability to autofs.
Thanks added some fixes hopefully this works...if not submit another bug please :)