All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erich Weiler <weiler@soe.ucsc.edu>
To: autofs@linux.kernel.org
Subject: AutoFS problem with OpenLDAP server
Date: Wed, 26 Jul 2006 13:23:14 -0700	[thread overview]
Message-ID: <44C7CF32.7030501@soe.ucsc.edu> (raw)

Greetings all-

I have a strange problem with AutoFS under Fedora Core 5.  Can't seem to 
automount via ldap the way I should be able to.  If I have:

automount: files ldap

in /etc/nsswitch.conf, and have:

/projects 
ldap://ldapserver.domain.com/nisMapName=auto.projects,dc=domain,dc=com

in /etc/auto.master, everything works.  However, I don't want my clients 
to be configured this way because I have two redundant OpenLDAP servers 
and would like AutoFS to automatically try a second LDAP server if the 
first one goes down.  So I put this in /etc/nsswitch.conf:

automount: ldap

and tried to restart AutoFS, and got the error:

[root@sunbright default]# /etc/init.d/autofs start
Starting automount: No Mountpoints Defined                 [  OK  ]
[root@sunbright default]#

But there ARE automount maps in OpenLDAP, as the first method works.  If 
I try the "automount" command manually, I get this in the logs:

Jul 26 13:06:34 sunbright automount[22965]: starting automounter version 
4.1.4-19, path = /projects, maptype = ldap, mapname = 
nisMapName=auto.projects,dc=domain,dc=com
Jul 26 13:06:34 starbright automount[22965]: lookup(ldap): couldn't bind 
to default server

The server does accept anonymous lookups.  I even watched the traffic 
(via tcpdump) from the client to the server and there was no traffic at 
all!  Seems the client isn't even trying to contact any of my LDAP 
servers.

Does anyone have any ideas as to what's happening?  Like I said I would 
like the automounter to try each of my 3 servers in order listed in 
/etc/ldap.conf, so manually specifying one server in /etc/auto.master 
isn't very appealing...

Thanks in advance for any insight!

ciao, erich

             reply	other threads:[~2006-07-26 20:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-26 20:23 Erich Weiler [this message]
2006-07-26 21:24 ` AutoFS problem with OpenLDAP server Erich Weiler
2006-07-26 21:52   ` Jeff Moyer
2006-07-26 22:19     ` Erich Weiler
2006-07-27  0:46       ` Erich Weiler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C7CF32.7030501@soe.ucsc.edu \
    --to=weiler@soe.ucsc.edu \
    --cc=autofs@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.