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

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