#728159 autofs_5.0.7 fails when DNS is required at boot

Package:
autofs
Source:
autofs
Description:
kernel-based automounter for Linux
Submitter:
Dustin Howett
Date:
2013-10-29 00:30:23 UTC
Severity:
normal
#728159#5
Date:
2013-10-29 00:21:17 UTC
From:
To:
When autofs with autofs-ldap is configured to bind to a LDAP server by its
domain name, a la LDAP_URI="ldap://host.name", it fails to bind on boot and
remains in a state of failure.

In my case, the LDAP_URI is "uhf.nebula". The logs show as follows:
Oct 28 16:59:23 lht automount[2022]: lookup(ldap): Unable to bind to the
LDAP server: ldap://uhf.nebula, error Can't contact LDAP server
Oct 28 16:59:23 lht automount[2022]: lookup(ldap): couldn't connect to
server ldap://uhf.nebula
Oct 28 16:59:23 lht automount[2022]: do_reconnect: lookup(ldap): failed to
find available server

This can be remedied by adding $named to /etc/init.d/autofs's
Required-Start and Required-Stop dependency lists.