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

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