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

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