Automount with LDAP maps failing on boot
Hi,
I have a system (Dell Precision 380) running Debian testing - installed
today. Autofs is set in nsswitch.conf to read from file, & is supposed
to mount /home (& some other directories) from the LDAP maps there.
However, this fails on bootup - the automount directories cannot be
opened once the machine has booted. Restarting autofs manually (via
/etc/init.d/autofs restart) is successful & all runs smoothly thereafter.
I've not been able to find anything via google/Debian list archives/bug
reports about this problem specifically. However, I have encountered a
report of a bug with udev & ldap
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318622), to do with
udev reading nsswitch.conf & hanging on ldap entries because networking
is not yet up - I'm wondering if this is related.
The boot logs (below) seem to show dbus-daemon, exim4, famd, and
rpc.statd all referring to nss_ldap & failing to connect to an LDAP
server, before the automount lookup fails: and all this happens between
eth0 being brought up, and the DHCP negotiation, indicating I think that
the LDAP connect attempts are happening because the machine doesn't yet
have IP address etc.
My nsswitch.conf, auto.master & the log snippets are below. I'd be
grateful for any suggestions on workarounds, or if anyone else has
encountered this problem. Should I report it as a bug, & if so, against
which package?
Thanks,
Juliet
nsswitch.conf:
--------------
passwd: compat files ldap
shadow: compat files ldap
group: compat files ldap
hosts: files dns
services: db files ldap [NOTFOUND=return]
networks: db files ldap [NOTFOUND=return]
protocols: db files ldap [NOTFOUND=return]
rpc: db files ldap [NOTFOUND=return]
ethers: db files ldap [NOTFOUND=return]
automount: files
auto.master
-----------
/home ldap:nisMapName=auto_home,dc=ph,dc=ic,dc=ac,dc=uk
/misc ldap:nisMapName=auto_misc,dc=ph,dc=ic,dc=ac,dc=uk
/disk ldap:nisMapName=auto_disk,dc=ph,dc=ic,dc=ac,dc=uk
/soft ldap:nisMapName=auto_soft,dc=ph,dc=ic,dc=ac,dc=uk
syslog
------
Mar 30 12:40:20 benten kernel: ACPI: Power Button (FF) [PWRF]
Mar 30 12:40:20 benten kernel: ACPI: Power Button (CM) [VBTN]
Mar 30 12:40:20 benten kernel: tg3: eth0: Link is up at 100 Mbps, full
duplex.
Mar 30 12:40:20 benten kernel: tg3: eth0: Flow control is on for TX and
on for RX.
Mar 30 12:40:20 benten kernel: lp0: using parport0 (interrupt-driven).
Mar 30 12:40:20 benten dbus-daemon: nss_ldap: could not connect to any
LDAP server as (null) - Can't contact LDAP server
Mar 30 12:40:21 benten last message repeated 3 times
Mar 30 12:40:22 benten exim4: nss_ldap: could not connect to any LDAP
server as
(null) - Can't contact LDAP server
Mar 30 12:40:22 benten kernel: Installing knfsd (copyright (C) 1996
okir@monad.swb.de).
Mar 30 12:40:22 benten kernel: NFSD: Using /var/lib/nfs/v4recovery as
the NFSv4
state recovery directory
Mar 30 12:40:22 benten kernel: NFSD: recovery directory
/var/lib/nfs/v4recovery
doesn't exist
Mar 30 12:40:22 benten kernel: NFSD: starting 90-second grace period
Mar 30 12:40:22 benten mountd[6325]: nss_ldap: could not connect to any
LDAP server as (null) - Can't contact LDAP server
Mar 30 12:40:22 benten last message repeated 5 times
Mar 30 12:40:22 benten kernel: NET: Registered protocol family 10
Mar 30 12:40:22 benten kernel: lo: Disabled Privacy Extensions
Mar 30 12:40:22 benten kernel: IPv6 over IPv4 tunneling driver
Mar 30 12:40:22 benten famd: nss_ldap: could not connect to any LDAP
server as (null) - Can't contact LDAP server
Mar 30 12:40:22 benten rpc.statd[6386]: Version 1.0.7 Starting
Mar 30 12:40:22 benten rpc.statd[6386]: statd running as root. chown
/var/lib/nfs/sm to choose different user
Mar 30 12:40:22 benten rpc.statd[6386]: nss_ldap: could not connect to
any LDAP
server as (null) - Can't contact LDAP server
Mar 30 12:40:22 benten rpc.statd[6386]: nss_ldap: could not connect to
any LDAP
server as (null) - Can't contact LDAP server
Mar 30 12:40:22 benten /usr/sbin/cron[6401]: (CRON) INFO (pidfile fd = 3)
Mar 30 12:40:22 benten /usr/sbin/cron[6402]: (CRON) STARTUP (fork ok)
Mar 30 12:40:22 benten /usr/sbin/cron[6402]: (CRON) INFO (Running
@reboot jobs)
Mar 30 12:40:23 benten automount[6564]: lookup(ldap): couldn't bind to
default sMar 30 12:40:23 benten automount[6624]: lookup(ldap): couldn't
bind to default server
Mar 30 12:40:23 benten automount[6698]: lookup(ldap): couldn't bind to
default server
Mar 30 12:40:23 benten automount[6706]: lookup(ldap): couldn't bind to
default server
Mar 30 12:40:23 benten dhclient: DHCPDISCOVER on eth0 to 255.255.255.255
port 67 interval 11
Mar 30 12:40:23 benten dhclient: DHCPOFFER from 155.198.204.1
Mar 30 12:40:23 benten dhclient: DHCPREQUEST on eth0 to 255.255.255.255
port 67
Mar 30 12:40:23 benten dhclient: DHCPACK from 155.198.204.1
Mar 30 12:40:23 benten dhclient: bound to 155.198.204.124 -- renewal in
129600 seconds.
Mar 30 12:40:33 benten kernel: eth0: no IPv6 routers present
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Ms Juliet Kemp +
+ Computer Manager star@imperial.ac.uk +
+ Astrophysics Group +
+ Imperial College Tel: +44 (0)20759 47543 +
+ London. SW7 2AZ Fax: +44 (0)20759 47541 +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Reply to: