Blame SOURCES/autofs-5.1.0-beta1-fix-ldap-default-master-map-name-config.patch

306fa1
autofs-5.1.0-beta1 - fix ldap default master map name config
306fa1
306fa1
From: Ian Kent <ikent@redhat.com>
306fa1
306fa1
If there is no master map name defined in the autofs configuration the
306fa1
lookup will try to find a map with the default name and if the map isn't
306fa1
found will substute dots with underscores and repeat the lookup.
306fa1
306fa1
So don't set the default master map name at defaults initialization time.
306fa1
---
306fa1
 CHANGELOG      |    1 +
306fa1
 lib/defaults.c |    5 -----
306fa1
 2 files changed, 1 insertion(+), 5 deletions(-)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -112,6 +112,7 @@
306fa1
 - fix wildcard key lookup.
306fa1
 - fix out of order amd timestamp lookup.
306fa1
 - fix ldap default schema config.
306fa1
+- fix ldap default master map name 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
@@ -266,11 +266,6 @@ static int conf_load_autofs_defaults(voi
306fa1
 	const char *sec = autofs_gbl_sec;
306fa1
 	int ret;
306fa1
 
306fa1
-	ret = conf_update(sec, NAME_MASTER_MAP,
306fa1
-			  DEFAULT_MASTER_MAP_NAME, CONF_ENV);
306fa1
-	if (ret == CFG_FAIL)
306fa1
-		goto error;
306fa1
-
306fa1
 	ret = conf_update(sec, NAME_TIMEOUT,
306fa1
 			  DEFAULT_TIMEOUT, CONF_ENV);
306fa1
 	if (ret == CFG_FAIL)