From: Rich West <Rich.West@wesmo.com>
To: autofs@linux.kernel.org
Subject: Re: autofs5 + ldap + ldap replication
Date: Mon, 06 Aug 2007 21:32:42 -0400 [thread overview]
Message-ID: <46B7CBBA.7080105@wesmo.com> (raw)
>
> Ian Kent wrote:
> > On Tue, 2007-07-24 at 11:48 +0800, Ian Kent wrote:
> >
> >> On Mon, 2007-07-23 at 12:37 -0400, Rich West wrote:
> >>
> >>> Ian Kent wrote:
> >>>
> >>>> On Mon, 2007-07-16 at 15:54 -0400, Rich West wrote:
> >>>>
> >>>>
> >>>>> Jul 16 15:21:08 myhost automount[1852]: lookup_read_master:
> >>>>> lookup(ldap): searching for "(objectclass=automount)" under
> >>>>> "ou=auto.master,dc=mydomain,dc=com"
> >>>>> Jul 16 15:21:08 myhost automount[1852]: lookup_read_master:
> >>>>> lookup(ldap): examining entries
> >>>>> Jul 16 15:21:08 myhost automount[1852]: master_echo: .
> >>>>> Jul 16 15:21:08 myhost automount[1852]: master_echo: .
> >>>>> Jul 16 15:21:08 myhost automount[1852]: master_echo: :
> >>>>> Jul 16 15:21:08 myhost automount[1852]: master_echo: .
> >>>>>
> >>>>>
> >>>> This is a parse error that's not being handled.
> >>>> What autofs is getting from the LDAP server can't be the same as what
> >>>> it's getting from the master if the master is working.
> >>>>
> >>>> Can you give us an example of the output from an LDAP search to both the
> >>>> servers please.
> >>>>
> >>> Sorry for the long delay.. I missed this one.
> >>>
> >>> Both servers are running the same version of openldap. You have the
> >>> output from the bad search. I turned up logging and reloaded autofs on
> >>> the master server and got the following (was that what you were looking
> >>> for?):
> >>>
> >> I was hoping to get the output from an ldapsearch for one of the maps
> >> from both servers.
> >>
> >
> > Actually, the parse fail happened for the master map.
> > How about an ldapsearch for that on bothe servers.
>
> Ok.. Sorry about that, too.
>
> master#> ldapsearch -x -b ou=auto.master,dc=mydomain,dc=com
> '(objectclass=automount)' -LLL -h localhost
> dn: cn=/home,ou=auto.master,dc=mydomain,dc=com
> objectClass: automount
> cn: /home
> automountInformation: ldap:ldap.mydomain.com:ou=auto.home,dc=mydomain,dc=com
>
>
> replica#> ldapsearch -x -b ou=auto.master,dc=mydomain,dc=com
> '(objectclass=automount)' -LLL -h localhost
> dn: cn=/home,ou=auto.master,dc=mydomain,dc=com
> objectClass: automount
> cn: /home
> automountInformation: ldap ldap.mydomain.com:ou=auto.home,dc=mydomain,dc=com
>
> I just noticed that the replica is returning "ldap ldap.mydomain.com"
> which is missing the colon between "ldap" and "ldap.mydomain.com".
> That's odd. When I look at things from phpldapadmin, the entries look
> exactly the same on both machines. The master server is a Fedora Core 5
> box, and the replica is a Fedora Core 6 box.
After some tinkering I did finally figure things out. It had to do with
the automountInformation field.
In the LDAP database, I had:
automountInformation: ldap:ldap.mydomain.com:ou=auto.home,dc=mydomain,dc=com
I found (on an obscure posting elsewhere) that I could get it to work
via this entry:
automountInformation: ldap:ou=auto.home,dc=mydomain,dc=com
Basically, I eliminated the LDAP server from the entry. I'm going to
hazard a guess, but, since autofs sees that it is an ldap entry, it just
uses the system's bindings in order to resolve the ou... Anyhow, it
works like a champ on FC5, FC6, and FC7.
-Rich
next reply other threads:[~2007-08-07 1:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 1:32 Rich West [this message]
2007-08-07 14:33 ` autofs5 + ldap + ldap replication Jim Summers
2007-08-07 15:24 ` Rich West
2007-08-07 16:52 ` Jim Summers
2007-08-08 11:33 ` Ian Kent
-- strict thread matches above, loose matches on Subject: below --
2007-07-15 2:26 Rich West
2007-07-15 8:31 ` jehan procaccia
[not found] ` <469A39D5.8040304@wesmo.com>
2007-07-16 18:28 ` Rich West
2007-07-16 15:17 ` Ian Kent
2007-07-16 18:26 ` Rich West
2007-07-16 18:59 ` Jeff Moyer
2007-07-16 19:54 ` Rich West
2007-07-17 6:20 ` Ian Kent
2007-07-23 16:37 ` Rich West
2007-07-24 3:48 ` Ian Kent
2007-07-24 3:56 ` Ian Kent
2007-07-24 16:55 ` Rich West
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=46B7CBBA.7080105@wesmo.com \
--to=rich.west@wesmo.com \
--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.