Blame SOURCES/autofs-5.1.0-beta1-fix-ldap-default-schema-config.patch

304803
autofs-5.1.0-beta1 - fix ldap default schema config
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
If there is no schema set in the autofs configuration then the ldap
304803
lookup module assumes it will get a NULL return when it asks for the
304803
default schema.
304803
304803
So don't set the default schema at defaults initialization time.
304803
---
304803
 CHANGELOG      |    1 +
304803
 lib/defaults.c |   25 -------------------------
304803
 2 files changed, 1 insertion(+), 25 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -111,6 +111,7 @@
304803
 - add amd map format parser.
304803
 - fix wildcard key lookup.
304803
 - fix out of order amd timestamp lookup.
304803
+- fix ldap default schema config.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/lib/defaults.c
304803
+++ autofs-5.0.7/lib/defaults.c
304803
@@ -301,31 +301,6 @@ static int conf_load_autofs_defaults(voi
304803
 	if (ret == CFG_FAIL)
304803
 		goto error;
304803
 
304803
-	ret = conf_update(sec, NAME_MAP_OBJ_CLASS,
304803
-			  DEFAULT_MAP_OBJ_CLASS, CONF_ENV);
304803
-	if (ret == CFG_FAIL)
304803
-		goto error;
304803
-
304803
-	ret = conf_update(sec, NAME_ENTRY_OBJ_CLASS,
304803
-			  DEFAULT_ENTRY_OBJ_CLASS, CONF_ENV);
304803
-	if (ret == CFG_FAIL)
304803
-		goto error;
304803
-
304803
-	ret = conf_update(sec, NAME_MAP_ATTR,
304803
-			  DEFAULT_MAP_ATTR, CONF_ENV);
304803
-	if (ret == CFG_FAIL)
304803
-		goto error;
304803
-
304803
-	ret = conf_update(sec, NAME_ENTRY_ATTR,
304803
-			  DEFAULT_ENTRY_ATTR, CONF_ENV);
304803
-	if (ret == CFG_FAIL)
304803
-		goto error;
304803
-
304803
-	ret = conf_update(sec, NAME_VALUE_ATTR,
304803
-			  DEFAULT_VALUE_ATTR, CONF_ENV);
304803
-	if (ret == CFG_FAIL)
304803
-		goto error;
304803
-
304803
 	ret = conf_update(sec, NAME_APPEND_OPTIONS,
304803
 			  DEFAULT_APPEND_OPTIONS, CONF_ENV);
304803
 	if (ret == CFG_FAIL)