40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
autofs-5.0.5 - 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.
|
|
---
|
|
|
|
CHANGELOG | 1 +
|
|
modules/lookup_ldap.c | 2 +-
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
--- autofs-5.0.5.orig/CHANGELOG
|
|
+++ autofs-5.0.5/CHANGELOG
|
|
@@ -23,6 +23,7 @@
|
|
- fix strdup() return value check (Leonardo Chiquitto).
|
|
- fix reconnect get base dn.
|
|
- add missing sasl mutex callbacks.
|
|
+- fix get query dn failure.
|
|
|
|
03/09/2009 autofs-5.0.5
|
|
-----------------------
|
|
--- autofs-5.0.5.orig/modules/lookup_ldap.c
|
|
+++ autofs-5.0.5/modules/lookup_ldap.c
|
|
@@ -556,7 +556,7 @@ static int do_bind(unsigned logopt, LDAP
|
|
}
|
|
}
|
|
|
|
- if (ctxt->schema && !need_base)
|
|
+ if (ctxt->schema && ctxt->qdn && !need_base)
|
|
return 1;
|
|
|
|
/*
|