autofs-5.0.1 - fix reconnect get base dn From: Ian Kent <raven@themaw.net> If connect to an LDAP server but fail to find a valid query dn a subsequent reconnect succeeds without setting the schema fields used for constructing queries. A segfault then occurs when we try to construct a query using the schema values that should have been set during the query dn validation. --- 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 (!need_base) + if (ctxt->schema && !need_base) return 1; /*