[EMAIL PROTECTED] 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 _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
