autofs-5.0.1 - fix get query dn failure From: Ian Kent <raven@themaw.net> Recent changes to the LDAP connection logic can fail to retrieve a valid query dn upon LDAP connection. If LDAP is being used to store autofs maps, the LDAP schema to be used for the maps is explicitly defined in the autofs configuration and no master map entries exist in LDAP autofs fails to try and retrieve a query dn, returning success instead of failure. --- modules/lookup_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- autofs-5.0.1.orig/modules/lookup_ldap.c +++ autofs-5.0.1/modules/lookup_ldap.c @@ -478,7 +478,7 @@ static int do_bind(unsigned logopt, LDAP } } - if (ctxt->schema && !need_base) + if (ctxt->schema && ctxt->qdn && !need_base) return 1; /*