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

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