All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Rousse <Guillaume.Rousse@inria.fr>
To: autofs@linux.kernel.org
Subject: Re: autofs 5.0.1-rc1 still doesn't find master map in ldap automatically
Date: Fri, 25 Aug 2006 18:04:05 +0200	[thread overview]
Message-ID: <44EF1F75.5090902@inria.fr> (raw)
In-Reply-To: <E1GGe66-00006L-00@mta2.cl.cam.ac.uk>

Piete.Brooks--autofs@cl.cam.ac.uk wrote:
>> OK, I found the issue: when all you have is mapname, and you have to use
>> default server and base, you should use LDAP_SCOPE_SUBTREE scope for
>> your query, not LDAP_SCOPE_ONELEVEL
> 
> Why?
Because using LDAP_SCOPE_ONELEVEL assume your master map is directly
beyond your default base, which is likely to be wrong.

> As I said before, it works for me as it is. I see no need to change it.
> 
> I've just had my wrist slapped for suggesting doing three queries for the 
> three "common" schemas, so changing from a one level search (which should be 
> very fast as I'd not expect much at the top level) to searching the WHOLE tree 
> (which I expect to be several orders of magnitude slower) would seem not to be 
> a good idea.
Only once, for the initial master map lookup, and only if no explicit
map name has been given.

> 
> If you do the search manually, does it work?
Yes, because ldapsearch default's scope is sub.

> Are the two programmes using the same conf file (e.g. std /etc/ldap.conf vs 
> /etc/openldap/ldap.conf)?
of course. ldap client use ldap library, as does automount.
-- 
Guillaume Rousse
Projet Estime, INRIA
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex - France

  reply	other threads:[~2006-08-25 16:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24 14:36 autofs 5.0.1-rc1 still doesn't find master map in ldap automatically Guillaume Rousse
2006-08-25  1:24 ` Ian Kent
2006-08-25  7:22   ` Guillaume Rousse
2006-08-25 11:21     ` Ian Kent
2006-08-25 12:25       ` Guillaume Rousse
2006-08-25 12:35         ` Ian Kent
2006-08-25 12:49           ` Guillaume Rousse
2006-08-25 13:18             ` Ian Kent
2006-08-25 13:30               ` Ian Kent
2006-08-25 15:29                 ` Guillaume Rousse
2006-08-25 15:21                   ` Piete.Brooks--autofs
2006-08-25 16:04                     ` Guillaume Rousse [this message]
2006-08-25 17:28                       ` Ian Kent
2006-08-26  3:20                     ` Ian Kent
2006-08-26  6:47                       ` Piete.Brooks--autofs
2006-08-26 10:51                         ` Ian Kent
2006-08-25 13:25         ` Ian Kent

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=44EF1F75.5090902@inria.fr \
    --to=guillaume.rousse@inria.fr \
    --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.