|
|
306fa1 |
autofs-5.0.9 - amd-lookup skip sss source for amd lookups
|
|
|
306fa1 |
|
|
|
306fa1 |
From: Ian Kent <raven@themaw.net>
|
|
|
306fa1 |
|
|
|
306fa1 |
Looks like we won't be able to provide sss as a map source for
|
|
|
306fa1 |
amd maps. There's no way to tell sss to use a different schema
|
|
|
306fa1 |
for different map formats.
|
|
|
306fa1 |
---
|
|
|
306fa1 |
daemon/lookup.c | 14 ++++++++++++++
|
|
|
306fa1 |
1 file changed, 14 insertions(+)
|
|
|
306fa1 |
|
|
|
306fa1 |
--- autofs-5.0.7.orig/daemon/lookup.c
|
|
|
306fa1 |
+++ autofs-5.0.7/daemon/lookup.c
|
|
|
306fa1 |
@@ -636,6 +636,13 @@ int lookup_nss_read_map(struct autofs_po
|
|
|
306fa1 |
list_for_each(p, head) {
|
|
|
306fa1 |
this = list_entry(p, struct nss_source, list);
|
|
|
306fa1 |
|
|
|
306fa1 |
+ if (map->flags & MAP_FLAG_FORMAT_AMD &&
|
|
|
306fa1 |
+ !strcmp(this->source, "sss")) {
|
|
|
306fa1 |
+ warn(ap->logopt,
|
|
|
306fa1 |
+ "source sss is not available for amd maps.");
|
|
|
306fa1 |
+ continue;
|
|
|
306fa1 |
+ }
|
|
|
306fa1 |
+
|
|
|
306fa1 |
debug(ap->logopt,
|
|
|
306fa1 |
"reading map %s %s", this->source, map->argv[0]);
|
|
|
306fa1 |
|
|
|
306fa1 |
@@ -1164,6 +1171,13 @@ int lookup_nss_mount(struct autofs_point
|
|
|
306fa1 |
list_for_each(p, head) {
|
|
|
306fa1 |
this = list_entry(p, struct nss_source, list);
|
|
|
306fa1 |
|
|
|
306fa1 |
+ if (map->flags & MAP_FLAG_FORMAT_AMD &&
|
|
|
306fa1 |
+ !strcmp(this->source, "sss")) {
|
|
|
306fa1 |
+ warn(ap->logopt,
|
|
|
306fa1 |
+ "source sss is not available for amd maps.");
|
|
|
306fa1 |
+ continue;
|
|
|
306fa1 |
+ }
|
|
|
306fa1 |
+
|
|
|
306fa1 |
result = lookup_map_name(this, ap, map, name, name_len);
|
|
|
306fa1 |
|
|
|
306fa1 |
if (result == NSS_STATUS_UNKNOWN)
|