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